Error querying database in PHP, MySQL
- by user296516
Hi guys,
I have this code in PHP. It connects to the DB fine, but pops an error, when tryinto to insert the info.
$dbc = mysqli_connect('localhost', 'root', 'marina', 'aliendatabase') or die('Error connecting to MySQL server.');
$query = "INSERT INTO aliens_abduction (name, email) VALUSE ('John', '[email protected]')";
$result = mysqli_query($dbc, $query) or die('Error querying database.');
mysqli_close($dbc);
Here's a screenshot: http://img532.imageshack.us/img532/2930/63306356.jpg
Thanks,
R