SQL query INSERT not working inserting values into my DB.
Posted
by
Aiden Ryan
on Stack Overflow
See other posts from Stack Overflow
or by Aiden Ryan
Published on 2011-02-09T15:18:05Z
Indexed on
2011/02/09
15:25 UTC
Read the original article
Hit count: 204
Hello, I'm trying to insert registration data into a database but my php code isn't inserting the values into the DB although I'm not getting any errors either, can someone help me? this is the code i'm currently using:
$connect = mysql_connect("localhost","myusername","mypassword");
mysql_select_db("application");
$queryreg = mysql_query('INSERT INTO users("username","password","email","date") VALUES("$username","$password","$email","$date")');
die ("You Have Been Registered.");
I just need to add the username password email and date into the fields i have specified but it won't work, please someone help!
© Stack Overflow or respective owner