Johnsie
November 27th, 2008, 04:20 PM
Hi, Im trying to pull some data out of a table in order of date
My query is a follows:
$tquery = "SELECT TransDate,RefNo,TransPointsAmount from $tableName WHERE Member='$thisMemberID'ORDER BY TransDate ASC";
The format of the data in the TransDate field is dd/mm/yy (UK style). When I perform my query the results are not in order. Is there any way I can get this to work by changing the query rather than changing the format of every record.
Ps. I use phpmyadmin. Will changing the field description for TransDate help?
Thanks to anyone who can help
My query is a follows:
$tquery = "SELECT TransDate,RefNo,TransPointsAmount from $tableName WHERE Member='$thisMemberID'ORDER BY TransDate ASC";
The format of the data in the TransDate field is dd/mm/yy (UK style). When I perform my query the results are not in order. Is there any way I can get this to work by changing the query rather than changing the format of every record.
Ps. I use phpmyadmin. Will changing the field description for TransDate help?
Thanks to anyone who can help