> Your SELECT has a terminating semicolon. I'm guessing Multiple statement execution is enabled by default... http://dev.mysql.com/doc/refman/5.0/en/mysql-query.html -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php