mysql - SQL query INSERT not working inserting values into my DB -
i'm trying insert registration data database php code isn't inserting values db although i'm not getting errors either, can me? code i'm using:
$connect = mysql_connect("localhost","myusername","mypassword"); mysql_select_db("application"); $queryreg = mysql_query('insert users("username","password","email","date") values("$username","$password","$email","$date")'); die ("you have been registered.");
i need add username password email , date fields have specified won't work, please help!
change line
$queryreg = mysql_query("insert users(username,password,email,date) values('".$username."','".$password."','".$email."','".$date."')");
check error
if (mysql_errno()) { die('invalid query: ' . mysql_error()); }
Comments
Post a Comment