i created a forum with php and MySql, but i want to make the most recent updated topic on top with a graphics to indicate that it's kind of urgent or new ... can sombody please help me with that ?
what of them should be marked? I would write the sql statment with ASCend order, so the first row is the latest, and on that one I should mark it with a graphic or something.
I'm pretty sure you made a "while" loop in order to show all the results, right? (pls post that piece), so for the firs "echo" or "print" add an <img src="new.gif"> bofore to print the post.
mysql_select_db($database_cybertrading_support, $cybertrading_support);
$query_status = "SELECT * FROM support WHERE Status != 'completed' ORDER BY ID DESC";
$query_limit_status = sprintf("%s LIMIT %d, %d", $query_status, $startRow_status, $maxRows_status);
$status = mysql_query($query_limit_status, $cybertrading_support) or die(mysql_error());
$row_status = mysql_fetch_assoc($status);
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.