Hey all,
The problem im having is the following SQL is supposed to order 'post messages' by the date/time they were posted, but it doesnt.. lol.
Quote:
$postquery=@mysql_db_query($dbname,"SELECT * FROM posts WHERE typereferenceid='" . $_SESSION['curr_uid'] . " ORDER BY postdate,posttime'",$connection) or die("Internal error #1, please contact administrator!".mysql_error());
$i = 0;
while($posts = mysql_fetch_array($postquery))
{
// Display posts
}
In fact.. the order of display doesnt even represent what was posted last either.
For example..
Post #1
Post #3 (last post inserted into DB)
Post #2
Anybody ever come across an issue like this?? I figure i could get around it by manually parsing the post date/time, but considering SQL has a command to do this for me, i'd rather figure out why its not working, lol.
Thanks!