hi, heres my script.. $result = mysql_query("SELECT * FROM `user` order by `credit` LIMIT 5"); while($row = mysql_fetch_array($result)){ if (THIS IS THE FIRST RESULT) echo "<b>".$row['name']."</b>"; else echo $row['name']; } PHP: so my whole point is, i want the first result Highlighted & rest will be normal... i dont know tht if( ?? any other way?? help plz
i dint use much brains on this, so this may not be the best approach but here goes the code : $result = mysql_query("SELECT * FROM `user` order by `credit` LIMIT 5"); $count = 0; while($row = mysql_fetch_array($result)){ $count++; if ($count == 1) echo "<b>".$row['name']."</b>"; else echo $row['name']; } Code (markup):