Forum: PHP Oct 15th, 2009 |
| Replies: 15 Views: 723 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 Views: 753 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 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 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 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 Views: 753 |
Forum: PHP Sep 21st, 2009 |
| Replies: 8 Views: 381 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 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 Views: 753 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 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 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 |
Forum: PHP Sep 21st, 2009 |
| Replies: 12 Views: 461 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 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 Hi there,
Here's the modified version of Dasatti's printContents:
<?php
$dir = "poems/";
printContents($dir); |