tags:

views:

37

answers:

3

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

+3  A: 

seems that you've misspelled VALUES in your query.

parserr
edited the typo, thanks. but still the same error keeps popping. :/
+1  A: 
$query = "INSERT INTO aliens_abduction (name, email) VALUES ('John', '[email protected]')";
Jimmy
edited the typo, thanks. but still the same error keeps popping. :/
+2  A: 

You have a typo in your query. Try changing VALUSE to VALUES.

klausbyskov
edited the typo, thanks. but still the same error keeps popping. :/