30.01.2013, 10:25
Your query syntax is abit wrong, it will always select only one row, as you set LIMIT 1, in your case you should use
pawn Код:
new row[24];
mysql_query( "SELECT COUNT(`name`) FROM `banlog` WHERE (`name` = '%s' OR `ip` = '%s') AND `banned` = '1'" );
mysql_store_result();
mysql_fetch_row(row,"|")
new Count = strval(row);
mysql_free_result();