$sql=mysql_query("SELECT ip!=\'$ip\' FROM counter") or die(mysql_error());
Im using $ip = $_SERVER[\'REMOTE_ADDR\']; to grab the ip btw
Now, am I right in that syntax to use it? Im thinking it needs to be select * from counter where ip!=\'$ip\' but I get errors when I do that.
Edit: nm got it, I forgot to use the \' marks when using ip!=\'$ip\'