PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Argh! Undefined Function executeStoredProc - mysqli

 
Post new topic   Reply to topic    PEAR Forum Forum Index -> Database
View previous topic :: View next topic  
Author Message
loftygoals



Joined: 06 Jun 2008
Posts: 2

PostPosted: Fri Jun 06, 2008 6:53 am    Post subject: Argh! Undefined Function executeStoredProc - mysqli Reply with quote

Argh!! I can't any reason for this to be happening. I can use MDB2 with no problems on regular sql statements, prepared statements, non queries etc. Everything works great until I try to execute a stored proc against MySQL5. everything I find says the function 'executeStoredProc' should work, I can even find the source code for the php pages taht define it...perhaps Im missing an valuable include.

Here is there error message:
Fatal error: Call to undefined function: MDB2_Driver_mysqli::executeStoredProc(). in /usr/share/php/MDB2.php on line 1936

my includes are:
require_once('MDB2.php')

Yes the include path points to that PHP script, I know it works from all my other script calls. I just can't get stored procs to work at all, even if i do a normal query and use the CALL syntax. . nothing seems to float through.

Please help and thank you for a moment of your time,
LG
Back to top
View user's profile Send private message
mark



Joined: 07 Jan 2007
Posts: 1053

PostPosted: Fri Jun 06, 2008 1:55 pm    Post subject: Reply with quote

The method is defined in the Function module, and therefore, you'll need to load this module before you can use the method:
http://pear.php.net/manual/en/package.database.mdb2.intro-module.php
Back to top
View user's profile Send private message
loftygoals



Joined: 06 Jun 2008
Posts: 2

PostPosted: Fri Jun 06, 2008 5:07 pm    Post subject: Reply with quote

A scholar and a gentleman. Thank you so much mark. With that tidbit it took me only 5secs to get it up and working, I wish I had thought of posting sooner.

Thanks again!
LG
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> Database All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement

'Actiemonitor' online projectmanagement software