Happy New Year folks. I'm a newbie and apparently a simpleton. I had an HTML entry form for a movie database that's been working fine. I decided to add two fields to the data base (720
and 1080
.) That's all I did, honest. But now it won't write and I get the dreaded Error X. I've been going over the code for hours and can't find what I did wrong.
Any suggestions would be greatly appreciated.
// Write data to table.
$sql="INSERT INTO movies (Movies, Rating, Genre, Year, Actors, Time, Notes, Viewed, link, 720, 1080)
VALUES ('" . $_POST['Movies'] . "', '" . $_POST['Rating'] . "', '" . $_POST['Genre'] . "', '" . $_POST['Year'] . "', '" . $_POST['Actors'] . "', '" . $_POST['Time'] . "', '" . $_POST['Notes'] . "', '" . $_POST['Viewed'] . "', '{$f_link}', '" . $_POST['720'] . "', '" . $_POST['1080'] . "')";
if (!mysqli_query($con,$sql))
{
die('Error: X ' . mysql_error($con));
}
echo "<center>1 record successfully added</center>";
mysqli_close($con);