When posting PHP code, please use the board's
bbcode tags - they make the code much, much easier to read (as well as aiding the diagnosis of syntax errors). You should edit your post now and add these bbcode tags to help others in reading/analyzing your code.
Once you add those tags, I think the error will become apparent (hint: look where the syntax highlighting first goes awry - you're missing a quote).
Also, instead of code such as
if ($_POST['user']) {
to check if a variable exists/has data, you should be using something like:
if(!empty($_POST['user'])) {
// -- OR --
if(isset($_POST['user'])) {
In addition to Piranha's warning about SQL injections, you should also make sure you remove the [man]mysql_error/man part when this script goes live.
EDIT: Why is the LastUpdate column not a DATETIME column if it's meant to hold a date and time? You should consider using proper column types according to the data they hold; change LastUpdated to a DATETIME column and instead of generating the date you can simply use LastUpdated=NOW() in your queries.