R
|
rafamarquez 3/1/2008 |
I need the main list page on my aviation project to sort the following by default: DepartureDate Show dates Equal or More Than (aka now or later than) today's date. There is a deadline on this project, and any help is appreciated. Unfortunately I have zero knowledge of php, or sql so please put your help into "idiot terms" Thanks.
|
L
|
lexxtank author 3/1/2008 |
You have to put a WHERE clause in the SQL Query Select recordid (id or primary key), desc, date from (realtablename) where date => today (today) depends of the database you are using and put the order by a) order by date asc <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=26535&image=1&table=forumreplies' class='bbc_emoticon' alt='B)' /> or order by date desc
|
J
|
Jane 3/3/2008 |
Hi, select flightid, desc_field, date_field from flights where date_field>=curdate() |
L
|
lexxtank author 3/5/2008 |
Hi, here is a sample:
|
J
|
Jane 3/5/2008 |
Hi, |
S
|
shoppy 3/17/2008 |
Hi, modify SQL query on the Edit SQL query tab in the PHPRunner.
|
J
|
Jane 3/21/2008 |
John, |
S
|
shoppy 4/10/2008 |
John, you need to add ORDER BY (descending) clause to your SQL query on the Edit SQL query tab.
|
S
|
shoppy 4/10/2008 |
It Worked!! |