Alright so I've got a table with 4 fields, looks like this
TABLE `unique` (
`id` int(11) NOT NULL auto_increment,
`ip` varchar(20) NOT NULL default '',
`regid` varchar(50) NOT NULL default '',
`num` int(11) NOT NULL default '0',
PRIMARY KEY (`id`)
)
Why the hell would the query
$query="INSERT INTO unique (ip, regid, num) VALUES ('$ip','$key','1')";
Not work? I have checked, and it will not work if I fill in the values manually either, so it has nothing to do with the variables, I confirmed they're both being properly set.