brsy
nah mang
- May 12, 2011
- 1,530
- 272
I know this is right, but why isn't it working?!
Error:
PHP:
if(!isset($error)) {
$ip = $_SERVER['REMOTE_ADDR'];
$motto = $config['client']['motto'];
$query = mysql_query("INSERT INTO `users` (`username`, `refer`, `password`, `mail`, `ip_last`, `ip_reg`, `motto`) VALUES(`$u`, `$r`, `$p`, `$m`, `$ip`, `$ip`, `$motto`);");
if(!$query) {
die(mysql_error());
}
}
Error: