Mod-Jay Posted December 11, 2010 Share Posted December 11, 2010 Umm.. Yeah, this MySQL line needs some reviewing list($total_banned_servers) = mysql_fetch_row(mysql_query("SELECT COUNT(id) FROM `toplist` WHERE banned='1' && serverowner=". $_SESSION['user'] ."")); Quote Link to comment Share on other sites More sharing options...
MMDE Posted December 11, 2010 Share Posted December 11, 2010 mysql_result(mysql_query('SELECT COUNT(id) FROM toplist WHERE banned=1 AND serverowner=\''.$_SESSION['user'].'\''),0) Would this be what you want? You used && instead of AND. Forgot to put single quotes around the value that wasn't a number in your query. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.