J?gvan Olsen
New member
im making a website using phpmyadmin and php.
$sql= mysql_query("SELECT * FROM `st` ORDER BY `to_timestamp` DESC");
and what i want is to order the timestamp, where the timestamp is more than the time now to be ordered ASC and when its older than now i want it to be ordered DESC and echo it with an gray background.
could anyone help me with this?
$sql= mysql_query("SELECT * FROM `st` ORDER BY `to_timestamp` DESC");
and what i want is to order the timestamp, where the timestamp is more than the time now to be ordered ASC and when its older than now i want it to be ordered DESC and echo it with an gray background.
could anyone help me with this?