deterset
Posts: 4
|
| Posted: 04/16/2008, 10:42 AM |
|
How can I access error messages from MySQL
I have CC version 3.2.0.4
for example:
$db = new clsDBconnection();
$result = $db->query("insert into some_table (col_name) values ('$value')");
if ($result == 0) {
echo "MySQL ERR:".$db->Errors->????? // Not sure here & can't find documentation
}
I also tried to find the class definition for clsDBconnection
Please help.
Thanks
|
 |
 |
deterset
Posts: 4
|
| Posted: 04/16/2008, 10:57 AM |
|
I found it ! just by trial and error.
$db->Error
This will display the text from mysql_error() function.
I wish it was documented some where.
|
 |
 |
|