Hello, I have been programming in PHP probably no more than a weak. I am having trouble trying to add a record to a mySQL database. The code I use is below. [code] $blnSecurityCodeIsGood=""; $blnSecurityCodeIsGood=false; if( isset($_POST['txtCAPTCHA']) && $_POST['txtCAPTCHA'] != $_SESSION['strCAPTCHACode'] ) { $blnSecurityCodeIsGood=false; } else { $blnSecurityCodeIsGood=true; $sql = "INSERT INTO 'tblBlogComments' ('CommentID', 'BlogID', 'UserID', 'Active', 'Username', 'Comment') VALUES (NULL, '1', '1', '1', 'James', 'test');"; // if(!$sql) { echo mysql_error($dbQuery); // }; mysql_query($sql,$dbQuery); echo $sql."<br>Ok."; } [/code] As you can see i have tried to get it to display and SQL error message but no errors are displayed, but when i check the database through phpMyAdmin no modification have been made in any way, shape or form. Any help is wanted! Thanks in Advance. Regards, James