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

 Store Procedure

Print topic Send  topic

Author Message
REVENSE

Posts: 46
Posted: 07/25/2008, 5:43 AM

hai guys

i was crated store procedure on mysql, but when try to call that procedure from codecharge it became error but when i am trying to call that procedure on mysql everything is ok . for the record this is my first time using procedure on codecharge, i am usually using query(manual).

my question is any one know step by step to input parameter on codecharge while using procedure mode.

i realy need help guys,

thx

Rev
View profile  Send private message
maxhugen

Posts: 272
Posted: 07/28/2008, 4:57 PM

Hi Rev

I've been trying to use stored procedures, but have run into problems because my web service provider hasn't upgraded to the latest version of MySQL yet, which allows a user other than root to specify a Definer other than CURRENT_USER...

But assuming you don't have that issue.... your stored proc should have an IN parameter defined - yes?

In your CCS page, in the php code somewhere, you would call the procedure using an sql statement that you've prepared. This would include your parameter. As a rough example:

        $db = new clsDBMyConnection();  
        $sql = "CALL my_procedure(" . $db->ToSQL(my_parameter,ccsInteger) . ");";  
        $db->query($sql);  
        $db->close();

I can't promise this will work, as I'm still having different probs with stored procedures, but I think that's how it should be done.

HTH
_________________
Max
www.gardenloco.com | www.eipdna.com | www.chrisarminson.com
View profile  Send private message
REVENSE

Posts: 46
Posted: 08/12/2008, 11:27 PM

hai max

thx for your help i really apriciate that :)

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

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


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