Error querying database.
Posted
by user296516
on Stack Overflow
See other posts from Stack Overflow
or by user296516
Published on 2010-04-10T13:07:37Z
Indexed on
2010/04/10
13:13 UTC
Read the original article
Hit count: 316
Hi, Once I have successfully connected to the database, i have a line that must insert values.
mysqli_query($edb, "INSERT INTO elvis_table (name,email) VALUES ('$name','$email')" ) or die('Error querying database.');
It works fine on my computer ( xampp ), but once I upload it onto a server, it starts giving an error.
Yes, I have a database with a corresponding table and fields on a server, it connects to the database fine, but gives an error on this line...
Thanks!
© Stack Overflow or respective owner