|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
help with php list data script
how do you make it list from last to first?
PHP Code:
|
|
#2
|
||||
|
||||
|
PHP Code:
|
|
#3
|
|||
|
|||
|
THX, now does anybody knows how to do a check so it wont add another entry to the table with the same date?
|
|
#4
|
||||
|
||||
|
You'll just have to do server-side validation prior to inserting. Select count(*) from the table where date is the submitted date. If count > 0, return an error and don't insert. Else insert. Theoretically, I suppose you could make the date field a unique field (not sure date fields even support that), but doing so strikes me as an odd and probably a bad idea.
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > help with php list data script |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|