|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here! |
|
#1
|
|||
|
|||
|
PHP SQL query, ORDER by date??
Using this code below for my query Im running, How would I order things by the 'date' I have.
PHP Code:
Thanks Nick |
|
#2
|
|||
|
|||
|
Re: PHP SQL query, ORDER by date??
Quote:
I got it working now with this. PHP Code:
|
|
#3
|
|||
|
|||
|
Why are you putting your field names outside the string?
Shouldn't you just use - $query = "SELECT * FROM records WHERE date BETWEEN '$thedate' AND '$thedate1' AND (SessType = 'number' OR SessType = 'word') ORDER BY date"; ? Hadley |
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > PHP SQL query, ORDER by date?? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|