# Need help resolving a dang parse error

**URL:** <https://forum.kirupa.com/t/need-help-resolving-a-dang-parse-error/255442>\
**Category:** programming\
**Created:** [March 22, 2008, 5:26pm UTC](https://forum.kirupa.com/t/need-help-resolving-a-dang-parse-error/255442 "2008-03-22T17:26:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![creativeFuzion](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/creativefuzion/32/1385_2.png) [@creativeFuzion](https://forum.kirupa.com/u/creativeFuzion)\
**Post date:** [March 22, 2008, 5:26pm UTC](https://forum.kirupa.com/t/need-help-resolving-a-dang-parse-error/255442/1 "2008-03-22T17:26:44Z")

</div>

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

<?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
