Code not inserting into MySQL Database!?!?
Excerpt Register.php
$register = mysql_query("INSTER INTO users VALUE ('','$firstname','$lastname','$username','$password_db','$dob_db','$gender_db')");
echo "Success!";
Connect.php
<?php
//connect
$error = "Problem connecting to database. Please try again later.";
$connect = mysql_connect("localhost","root","") or die($error);
mysql_select_db("upload") or die($error);
?>
It should all work. I don't get any errors when I use connect.php.
What's going on?
Also;
Notice: Undefined variable: firstname in /opt/lampp/htdocs/imageupload/register.php on line 121
Please help?!