I'm using this query:
$result = mysql_query("insert into calendar values ($eventid'', '$the_event', '$the_desc', '$the_date_y-$the_date_m-$the_date_d', '$_COOKIE[username])", $dbi);
$result = mysql_query("update calendar set event='".$the_event."', event_desc='".$the_desc."', date='$the_date_y-$the_date_m-$the_date_d', posted_by='$_COOKIE[username]' where id='".$eventid."')", $dbi);
When I try to use it I get the following error: You have an error in your SQL syntax near ')' at line 1
Please tell me how to fix this.
Thanks.