When using mysql_query, the SQL string to be executed should not end in a semicolon. Your initial post did not have a semicolon (but you obviously edited it to make it generic). Perhaps this was the initial problem? Subsequent posts had you terminating your queries with a semicolon. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php