Hello Skrol29;
I need to check for an error after TbsSQL does $Db->Execute($sq): so that I can perform an edit/correction to form-submitted data entered if the $sql = "INSERT INTO $table ..." fails for any reason
I just found this post/thread and am trying to use your snip to get some info from TbsSQL like this
if($Db->Execute($sql)){
$debug .= "<hr> \$tbs_sql->_Dbs_Error(false)= ".$tbs_sql->_Dbs_Error(false)."<hr>";
$message = "Duplicate entry, please change your selection and resubmit -- error " .$tbs_sql->_Dbs_Error(false)."<hr>";
|
My script returns "Call to a member function _Dbs_Error() on a non-object in /home/htdocs/subscribers.php on line 166"
Would you be so kind as to explain the correct way for me to make use of your snippet above, please?
Sincere thanks for any guidance you can provide.
Thanks for TBS (and TBSSQL) every day,
TomH