"; if ($_POST[name]) { $sql="INSERT INTO Movies (Name, Year, Director, Genre, Tags) VALUES ('$_POST[name]','$_POST[year]','$_POST[director]', '$_POST[genre]','$_POST[tags]')"; if (!mysql_query($sql,$con)) { die('Error: ' . mysql_error()); } echo "Done!"; echo "

Movie '$_POST[name]' added

"; } else { echo "Oops!"; echo "

Something went wrong

"; } echo "

if you didn't redirected automatically
click here

"; echo ""; mysql_close($con) ?>