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'] ."")); Link to comment https://forums.phpfreaks.com/topic/221350-mysql-help/ 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. Link to comment https://forums.phpfreaks.com/topic/221350-mysql-help/#findComment-1145927 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.