CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 mysql error is not reported

Print topic Send  topic

Author Message
ado2000

Posts: 8
Posted: 09/05/2008, 5:15 AM

Hi all,

i'm facing a problem with mysql, when an error happen, i'm not able to intercept the error.

i use this portion of code


  
$result = $this->db->query($query);  
				  
if($this->db->Errno > 0){  
	if($this->db->Errno == 1062){  
		$this->addError("err_import_email_duplicated", $email, $this->db->Errno." ".$this->db->Error);  
	}else{  
		$this->addError("err_import_email_save_email", $email, $this->db->Errno." ".$this->db->Error." ".$query);  
	}  
	$this->notImportedEmail++;  
}  

I'm using codecharge studio 4.01.00.06

thanks

Giovanni
View profile  Send private message
ado2000

Posts: 8
Posted: 09/11/2008, 8:00 AM

no one can help ?

Thanks,

Giovanni
View profile  Send private message
ado2000

Posts: 8
Posted: 09/11/2008, 8:23 AM

i solved the problem,

i modified the file db_adapter.php

  
    function query($SQL) {  
        $this->LastSQL = $SQL;  
        $this->NextRecord = array();  
  
  
//*********************************  
// modifica per restituire l'errore  
//*********************************  
  
        $ret = $this->Provider->query($SQL);  
  
    	$this->Errno = $this->Provider->Errno;  
    	$this->Error = $this->Provider->Error;  
  
        return $ret;  
  
//        return $this->Provider->query($SQL);  
  
//*********************************  
// modifica per restituire l'errore  
//*********************************  
  
    }  
View profile  Send private message
wkempees


Posts: 1679
Posted: 09/11/2008, 12:36 PM

MB: Have you contacted support: visit http://support.yessoftware.com.
It might be in teresting to get their opinion about your solution.

Could lead to either a pointer as to how to do this,
or your solution to be adapted.

Walter

_________________
Origin: NL, T:GMT+1 (Forumtime +9)
CCS3/4.01.006 PhP, MySQL .Net/InMotion(Vista/XP, XAMPP)

if you liked this info PAYPAL me: http://donate.consultair.eu
View profile  Send private message
ado2000

Posts: 8
Posted: 09/12/2008, 8:00 AM

I'll do it

Thanks

Giovanni
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.