I have 2 columns in a table named "which" and "when"
I inserted via phpMyAdmin:
"d" into "which"
"303 West 34th St. cor. 8th Ave, NYC - 5:30 pm" into "when"
I then inserted another row:
"d" into "which"
"303 West 34th St. cor. 8th Ave, NYC - 6:00 pm" into "when"
When browsing the table (I only use phpMyAdmin) it looks like it has put the 6:00 row before the 5:30 row in the table, hmmm I didn't know this is possible so...
I have to order by the "which" column 'cause I have many other entries before these in the table, (some of which are "a" "b" etc in the which column) but:
SELECT * FROM $table order by which ASC
displays the 5:30 before the 6:00 !
I'm trying to order by both columns. Is there such a thing?
Please help I'm going bonkers!!!!
I inserted via phpMyAdmin:
"d" into "which"
"303 West 34th St. cor. 8th Ave, NYC - 5:30 pm" into "when"
I then inserted another row:
"d" into "which"
"303 West 34th St. cor. 8th Ave, NYC - 6:00 pm" into "when"
When browsing the table (I only use phpMyAdmin) it looks like it has put the 6:00 row before the 5:30 row in the table, hmmm I didn't know this is possible so...
I have to order by the "which" column 'cause I have many other entries before these in the table, (some of which are "a" "b" etc in the which column) but:
SELECT * FROM $table order by which ASC
displays the 5:30 before the 6:00 !
I'm trying to order by both columns. Is there such a thing?
Please help I'm going bonkers!!!!