skippa Posted May 1, 2009 Share Posted May 1, 2009 $c=mysql_query(" 'SELECT * FROM `users` WHERE status='Alive' ORDER BY `users`.`health` ASC LIMIT 0, 10 ';"); while($d=mysql_fetch_object($c)){ echo "<tr><td><a href='profile.php?viewuser=$d->username'>$d->username</a></td><td>$d->health</td><td>$d->rank</td></tr>"; Link to comment https://forums.phpfreaks.com/topic/156398-solved-whats-wrong-with-this-line-of-php/ Share on other sites More sharing options...
stockton Posted May 1, 2009 Share Posted May 1, 2009 Which line? If your query is the SQL line I would write it as follows. $c=mysql_query("SELECT * FROM `users` WHERE status='Alive' ORDER BY `users`.`health` ASC LIMIT 0, 10;"); Link to comment https://forums.phpfreaks.com/topic/156398-solved-whats-wrong-with-this-line-of-php/#findComment-823399 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.