Trying to perform this query:
$result = "INSERT INTO `user`(`username`, `ip`, `country`) VALUES ('$username','$location[ip]','$location[country]')";
@mysql_query($result) or die("Error:". mysql_error());
Tried ever combination of single and double quotes, but constantly getting error:
Error:Unknown column 'ip' in 'field list'
Column 'ip' does exist in database, when I echo out query and run it in PHPMyAdmin it works perfectly
INSERT INTO `user`(`username`, `ip`, `country`) VALUES ('name32','127.0.0.1','mycountry')
ipfield in theusertable.mysql_query("INTOuser(username,ip,country) VALUES ('name32','127.0.0.1','mycountry')") or die(mysql_error() );does that work?