Phpfr3ak Posted January 25, 2012 Share Posted January 25, 2012 Hey, having an odd issue, looking to show players whos within 25 ranks of them lower and higher, i'm unsure as to why the following code doesn't actually do it... would anyone care to explain... <?php $score = $playerdata['score']; $sql = "SELECT * FROM `players` WHERE '$score' BETWEEN 25 AND 75 ORDER BY `score` DESC"; $query = mysql_query($sql) or die(mysql_error()); $i=0; while($players = mysql_fetch_array($query)) { $i++; ?> Link to comment https://forums.phpfreaks.com/topic/255793-select-by-count/ Share on other sites More sharing options...
Phpfr3ak Posted January 25, 2012 Author Share Posted January 25, 2012 scratch that worked it out, sorry Link to comment https://forums.phpfreaks.com/topic/255793-select-by-count/#findComment-1311252 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.