- Impact
- 19
Hey
Whats wrong wid this code now
its not giving any error but instead of adding whats in $username its adding the "$username" into the database..
Whats wrong wid this code now
PHP:
@mysql_select_db($database) or die( "Unable to select database");
$query= 'INSERT INTO `user` (`id`, `username`, `pass`, `email`, `lastlogin`, `health`, `country`, `level`, `armysize`) VALUES (NULL, $username, $pass, $email, NULL, \'100\', $country, \'1\', \'1\');';
mysql_query($query);
its not giving any error but instead of adding whats in $username its adding the "$username" into the database..






