|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
You don't need a fax machine to get faxes. Get a fax-to-email fax number from CallWave. Try it free.
|
|
#1
|
|||
|
|||
|
Voting Poll Modifications - help!
In the article "Creating a Voting Poll With PHP And MySQL 2/2" the person visiting the site containing the voting poll sees the "most recently added poll" using the ShowPoll function:
$strQuery = "SELECT * FROM pollQuestions "; $strQuery .= "ORDER BY pk_Id DESC LIMIT 1"; $pResult = mysql_query($strQuery); How do I cause the viewer to see the polls in sequential order each time they visit the page, instead? For instance: 'Bob' visits the page on Monday morning and sees Poll Id 1 'Bob' visits the page on Monday afternoon and sees Poll Id 2 'Bob' visits the page on Tuesday and sees Poll Id 3 'Bob' visits the page on Friday morning and sees Poll Id 4 Thanks. I am new to PHP and MySql. |
|
#2
|
|||
|
|||
|
The easiest way would be to set a cookie. In fact, I can't think if a way to do it without one. I would set a cookie with the "last" poll they saw and next time you'll know and can show the next one.
|
![]() |
| Viewing: Dev Articles Community Forums > Databases > General SQL Development > Voting Poll Modifications - help! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|