Error querying database.

Posted on 16th Feb 2014 07:03 pm by admin

I get the above error when trying to insert some values to a datatable.
Here's the code :

Code: $dbc = mysqli_connect('', 'root', 'xxxx', 'aliendatabase')
or die('Error connecting to MySQL server.');

$query = "INSERT INTO aliens_abduction (first_name, last_name, " .
"when_it_happened, how_long, how_many, alien_description, " .
"what_they_did, fang_spotted, other, email) " .
"VALUES ('myFirstName', 'myLastName', '5 years ago', '2 years', '7 aliens', " .
"green eyes', 'we talked', " .
"'yes', '')";

$result = mysqli_query($dbc, $query)
or die('Error querying database.');


Any ideas on what am I doing wrong?
Thank you very much

No comments posted yet

Your Answer:

Login to answer
314 Like 35 Dislike
Previous forums Next forums
Other forums

Tiffany Bangles : , tiffany outlet
[b][url=]tiffany pas cher et bijoux co[/url][/b] [b][url=http://www.

phpmailer class &
Code: <?php
$mail->Host = "";

IWC Ingenieur speile 1: 1 kopi Watch AMG Automatisk Hvit Dial ( 3UOLVSXk ) Spesialpris: $ 293,59 - NOK 2,133 : replica IWC klokker,
[b]IWC[/b] [b][url=]IWC[/url][/b] [b][url=]IWC To

Really need helps regarding Pagination with Sort
I need someone helps regarding pagination problem...i actually want to make my page limited to let s

Making multiple rows with one query
I have a table called efed_handler_characters with two fields handler_id and bio_id. What query 2 is

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Google+ Indyaspeak @ Pinterest RSS