Switching to pdo won't necessarily remove sql errors any more than using a php framework will remove php errors. Thanks, Ash http://www.ashleysheridan.co.uk ----- Reply message ----- From: "kranthi" <kranthi117@xxxxxxxxx> Date: Mon, Oct 4, 2010 09:04 Subject: [PHP] Syntax Error To: <ash@xxxxxxxxxxxxxxxxxxxx> Cc: "chris h" <chris404@xxxxxxxxx>, "Gary" <gpaul@xxxxxxxxxxxxxxxx>, <php-general@xxxxxxxxxxxxx> As pointed out echo $insertSQl should help you locate many trivial problems. But using PDO will avoid these kind of problems -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php