I have an html form with three fields. The same three fields are the 3 columns in a table in a mysql database. I have a php scipt to add these filds in a new row using INSERT, but when the form is submitted, a new row is created in the table but the 3 fields are bank. Not sure whats wrong with the variables.
The form info:
The addpdx.php info:
$query = "INSERT INTO pdx (title, link, content)
VALUES ('$title', '$link', '$content')";
$result = mysql_query($query);
print "Data submitted to database!
(Click here to view)
mysql_close();
?>
2007-10-22
03:17:06
·
4 answers
·
asked by
mjcarney23
2
in
Computers & Internet
➔ Programming & Design