Hello everyone, wondered if you can help me with a php/query question.
I want to format the first row differently to the rest of the rows (always 20 returned).
My query looks like this right now:
<?php
$nt=array();
$query="SELECT * FROM table WHERE field=item ORDER BY date DESC LIMIT 20";
$rt=mysql_query($query);
echo mysql_error();
while($nt=mysql_fetch_array($rt)){
echo "<p class='columnitem'><a href='/item/".$nt[id]."'>".$nt[Title]."</a></p>";
}
?>
Which obviously formats all the rows the same, help please!