I have been trying to debug this mysql statement for the past 2 hours.. here is the statement:
$sql1 = "SELECT * FROM cpmip WHERE adid='$a' and ip='$ip'"; $res1 = mysql_query($sql1) or die(mysql_error());
I just can't figure out why this won't work.. it throws the following error:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '* FROM cpmip WHERE ip='127.0.0.1' and adid='6'' at line 1
Its really a vague error.. so i can't tell.. Anyone else know whats wrong??
Thanks in advance,