Search Results

Showing results 1 to 36 of 36
Search took 0.01 seconds.
Search: Posts Made By: wilch ; Forum: PHP and child forums
Forum: PHP Oct 15th, 2009
Replies: 15
Views: 727
Posted By wilch
First things first, you need to write simple algorithms/procedures for your desired tasks. From what i see the simple steps would be something like.
1. click add takes you to page for adding data...
Forum: PHP Oct 7th, 2009
Replies: 2
Views: 183
Posted By wilch
Well, i dont know how helpful this is, but once my applxn could not use the gd functions too, though the library was installed, so i read some article that told me i had to uncomment the line that...
Forum: PHP Oct 6th, 2009
Replies: 15
Solved: form validation
Views: 762
Posted By wilch
Cool, that's good news then. :P
Forum: PHP Oct 6th, 2009
Replies: 15
Solved: form validation
Views: 762
Posted By wilch
Hi Planet,
The reason why the insert could be failing is because the db expects the userid to be an integer, whilst in your case if you are using the following code to generate your userid, then the...
Forum: PHP Oct 4th, 2009
Replies: 5
Views: 392
Posted By wilch
Yes, you could try that, at least that way 2 result sets will be independent of one another, should you use the mysql_fetch_assoc.
Forum: PHP Oct 2nd, 2009
Replies: 5
Views: 392
Posted By wilch
Hi jbob, i didn't thoroughly analyze your code, but did a quick run through it, and i found 2 errors to start of with.
- line 83, the value being echoed into the hidden control's value attribute,...
Forum: PHP Oct 2nd, 2009
Replies: 15
Solved: form validation
Views: 762
Posted By wilch
Hi there !
Ok in the file testsel1.php, you need to do the following:
- revalidate the count of checked drivers, and ensure there are 7 (or less ??)
- generate the random id.
- save both drivers...
Forum: PHP Oct 2nd, 2009
Replies: 8
Views: 341
Posted By wilch
Forum: PHP Sep 25th, 2009
Replies: 3
Views: 250
Posted By wilch
To optimise your code for readablity, and avoiding boredom of scrolling down - like i experienced. Replace your js functions such as

function HighLightTR39(el, rowName){
if...
Forum: PHP Sep 24th, 2009
Replies: 3
Views: 1,087
Posted By wilch
Wow - now that's real efficiency.
I should have known of this months ago.
Forum: PHP Sep 24th, 2009
Replies: 3
Views: 1,087
Posted By wilch
Try the code below. You will have to decide what you will do with the js multi dimensional array in the javascript code where there is alert('...').


<?php

//create your multi lists here...
Forum: PHP Sep 24th, 2009
Replies: 3
Views: 303
Posted By wilch
Well, i have developed something similar tot that before.
What you first need is the pagination code. Then add to each url of the pagination links extra variables that maintain the current state of...
Forum: PHP Sep 24th, 2009
Replies: 3
Views: 303
Posted By wilch
Well, we can't solve what we can't see. Give us the logic of the code or rather the code itself then we might determine whether we can/not solve it :)
Forum: PHP Sep 23rd, 2009
Replies: 8
Views: 357
Posted By wilch
Cool buddy !
Plus the gratitude is even better, if you Add To Their Reputation, the thread they helped you solve.

:)
Forum: PHP Sep 23rd, 2009
Replies: 8
Views: 357
Posted By wilch
well, then that's not the problem for you, but ofr me - i once experienced it on that part.

Anyway, i think i see where the problem is. Line 26, there's an extra = sign.
Remove it !
Forum: PHP Sep 22nd, 2009
Replies: 8
Views: 357
Posted By wilch
Usually all output disappears from your browser if you have an error in your code, and error_reporting is set to E_ALL & E_NOTICE in your php.ini file.
In this case, i think your error, is that you...
Forum: PHP Sep 22nd, 2009
Replies: 10
Views: 608
Posted By wilch
well, if the problem is on line 48, the most sinister actors would be the 2 arguments '$dir1' AND '$dir/thumbs/$photo1'

- try outputting these strings before you call the function, and see what...
Forum: PHP Sep 22nd, 2009
Replies: 10
Views: 608
Posted By wilch
well, if the problem is on line 48, the most sinister actors would be the 2 arguments '$dir1' AND '$dir/thumbs/$photo1'

- try outputting these strings before you call the function, and see what...
Forum: PHP Sep 22nd, 2009
Replies: 15
Solved: form validation
Views: 762
Posted By wilch
No problem !
Forum: PHP Sep 22nd, 2009
Replies: 3
Views: 437
Posted By wilch
Show us the code, show us the code.
Where's the code, give us that yum yummy code !!
Forum: PHP Sep 22nd, 2009
Replies: 3
Views: 210
Posted By wilch
Forum: PHP Sep 21st, 2009
Replies: 8
Views: 381
Posted By wilch
you will need to loops, one loop maintaining track of the rows, and the other maintaining track of the columns.
e.g.

<?php

$count = 0;
for($i=0; $i<3; $i++){ //num of rows
for($j=0; $j<5;...
Forum: PHP Sep 21st, 2009
Replies: 3
Views: 210
Posted By wilch
Well, for starting you did not provide the file containing the form, so i am going to have to assume line 88 contains the values from the checked checkboxes:
$nletter=empty($_REQUEST['news']) ?...
Forum: PHP Sep 21st, 2009
Replies: 12
Views: 463
Posted By wilch
within the if clause, change the old sql statement to the following:


$sql = "INSERT INTO visitors(session_id, time_clicked, file_name) VALUES('$sessionID', '".strftime("%X",time())."', '$file')"...
Forum: PHP Sep 21st, 2009
Replies: 15
Solved: form validation
Views: 762
Posted By wilch
Here's the idea, though i have not tested the code, the logic is correct.


<?php

$sql = "SELECT * FROM options LIMIT 65";
$rs = mysql_query($sql);

echo "<form name='frmChk'...
Forum: PHP Sep 21st, 2009
Replies: 12
Views: 463
Posted By wilch
I am not sure how to open it up in a new window. But, i think the same code should open the pdf in a new window if the user's browser has a PDF viewer plugin installed on it, so my guess is that if...
Forum: PHP Sep 21st, 2009
Replies: 12
Views: 463
Posted By wilch
I am not sure i am getting your problem clearly. But, if you mean the file is not downloading because the file is in a different folder location. Then alter the code to this:


<?php...
Forum: PHP Sep 21st, 2009
Replies: 12
Views: 463
Posted By wilch
Forum: PHP Sep 21st, 2009
Replies: 12
Views: 463
Posted By wilch
You can try this. The page redirects to itself (pdf.php) when the link is clicked. The file then saves the time & user's session id before offering the file for download.


<?php...
Forum: PHP Sep 21st, 2009
Replies: 12
Views: 463
Posted By wilch
I am not quite sure which value it is you want to get, but i will assume it is the filename. In that case, i would have done this:


<a href="#" target="_blank"...
Forum: PHP Sep 18th, 2009
Replies: 8
Views: 341
Posted By wilch
Hi there,

Here's the modified version of Dasatti's printContents:


<?php

$dir = "poems/";
printContents($dir);
Forum: PHP Aug 20th, 2009
Replies: 3
Views: 359
Posted By wilch
hmm, interesting facts over there Almostbob, i had always wondered what makes some text on checkboxes clickable, on some not. Now, i know - thanks too !
Forum: PHP Aug 19th, 2009
Replies: 3
Views: 359
Posted By wilch
Here's a sample for a single checkbox, you can do the rest:

<form method="POST" action="http://*********.php">
<span class="label">Header</span>
<input type="checkbox" name="header" value="1">...
Forum: PHP Aug 18th, 2009
Replies: 2
Views: 208
Posted By wilch
[code]
<?php

//from your 2 resultsets containing the models & makes
//create a models array for each make
$models = array();
while($makerow = mysql_fetch_assoc($makeresultset)){
$j = 0;...
Forum: PHP Aug 18th, 2009
Replies: 16
Views: 702
Posted By wilch
dont you think that the error could be in the include file itself ?
Well, judging from the numbering, line 26 would be in the include file itself ?!?
I think it's worth a check !
Forum: PHP Jan 9th, 2009
Replies: 2
Views: 1,276
Posted By wilch
What i would first attempt to do is to check whether the field 'file' has anything after being posted, if it is set to something (hopefully a filename) then we can proceed to call the other image...
Showing results 1 to 36 of 36

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC