Search Results

Showing results 1 to 15 of 15
Search took 0.01 seconds.
Search: Posts Made By: wilch ; Forum: PHP and child forums
Forum: PHP Oct 15th, 2009
Replies: 15
Views: 723
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 2nd, 2009
Replies: 15
Solved: form validation
Views: 753
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 Sep 23rd, 2009
Replies: 8
Views: 355
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: 355
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: 355
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: 15
Solved: form validation
Views: 753
Posted By wilch
No problem !
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: 12
Views: 461
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: 753
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: 461
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: 461
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: 461
Posted By wilch
Forum: PHP Sep 21st, 2009
Replies: 12
Views: 461
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: 461
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: 338
Posted By wilch
Hi there,

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


<?php

$dir = "poems/";
printContents($dir);
Showing results 1 to 15 of 15

 


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

©2003 - 2009 DaniWeb® LLC