CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 problem with variable in custom SQL

Print topic Send  topic

Author Message
zmoerf

Posts: 12
Posted: 02/08/2008, 7:35 AM

1. I have modif query report like this :
  
function Open()  
    {  
	include "../extqry.php";  
        $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeBuildSelect", $this->Parent);  
        $this->SQL = $QRY ; // this var take from external file extqry.php  
        $this->CCSEventResult = CCGetEvent($this->CCSEvents, "BeforeExecuteSelect", $this->Parent);  
        $this->query(CCBuildSQL($this->SQL, $this->Where, $this->Order));  
        $this->CCSEventResult = CCGetEvent($this->CCSEvents, "AfterExecuteSelect", $this->Parent);  
    }  
 



2. PROBLEM : variable in custom sql can't be detect in ccs but detect if query run out from ccs

Custom Query :
  
$SQL = "SELECT *  FROM $t_costumer   WHERE nochek='A124'  AND kd_log='{$sat}' AND year='{$Thang}'  {$AND} GROUP BY date  ";  
 

example variable value like this :
  
$t_costumer =' cos_order1.`t_costumer@1375900230101` ';  // var not detect in ccs query  but detect if query run out from ccs  
$sat = ' 02324256643234 ' ; // var not detect in ccs query  but detect if query run out from ccs  
 


3. Real query like this :
  
$SQL = "SELECT *  FROM  cos_order1.`t_costumer@1375900230101` WHERE nochek='A124'  AND kd_log='02324256643234' AND year='2008'  date_from >= '2006-01-02'   AND date_and <= '2006-12-08' GROUP BY date  ";  
 


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.