I get the following when processing a form:
Parse error: syntax error, unexpected T_VARIABLE in /home/niftytwo/public_html/submit_update.php on line 13
Here is the code Im working with:
<?php include('class_lib.php'); ?>
<?php
$n250_conn = new connect_to_db();
$n250_conn->connect_to_table("tablename");
$update_title = $_POST['update_title'];
$update_author = $_POST['update_author'];
$update_content = $_POST['update_content'];
$update_date = mktime(0,0,0,date("m"),date("d"),date("Y"));
$final_date = date("Y/m/d", $update_date);
$add_update = mysql_query("INSERT INTO news_updates (update_title, update_author, update_content, update_date) VALUES ("$update_title", "$update_author", "$update_content", "$final_date"");
if ($add_update) {
echo "Update Successful";
} else {
die('Update Failed: ' . mysql_error());
}
I cannot seem to figure this one out, and have tried on multiple attempts to fix it. If I can get any assistance that would be great.
~Philip