1) mysql_error() does not expect an argument [Jordan's fault]
PHP Code:
mysql_error($connection)
After removing $connection, I was then able to see an error:
2) You had an extra comma before WHERE
PHP Code:
lastupdated='$date', WHERE
I was confident that would fix the problem, but it didn't...
3) So I just but backticks around all your table id's and spaced them properly and it worked....