CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Howto Access mysql_error() text

Print topic Send  topic

Author Message
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
View profile  Send private message
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. :-/
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.