So im using this code:
Code: Select all
$ip = $_SERVER['REMOTE_ADDR'];
$checkin_ip = ('SELECT COUNT(ip_address) FROM `spam` WHERE `ip_address` = "$ip"');
$ipget = mysql_query($checkin_ip);
$ipid = mysql_fetch_array($ipget);
$ipid = $ipid[0];when I do print $ip; he gives me my ip but it is not working the query I do not know what is going on.
help me with the code to extract correctly the amount from the query.
cheers