Sponsored by NuSphere - PHP Software for PHP Application Developers - On Sale This Week for $100



Go Back   PHP-Editors > Linux, Apache, MySQL > MySQL Help

MySQL Help Post any question relating to MySQL here and hopefully someone can help

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 2007-11-19, 02:39 PM
Junior Member
 
Join Date: Nov 2007
Posts: 1
ravibachwala is on a distinguished road
Default How to call stored Procedure in phpAdmin

Hi,

I have created the a stored procedure. when i am trying to call that stored procedure i am getting a error.



#1312 - PROCEDURE 'procedurename' cannot return the return the result set.


Can anybody help me out

Regards,

Ravi
Reply With Quote
  #2 (permalink)  
Old 2007-11-28, 05:00 PM
Junior Member
 
Join Date: Nov 2007
Location: San Diego, CA
Posts: 2
danielsonchris is on a distinguished road
Smile

Ravi,
I had a similiar issue and found that the mysqli driver needs an additional parameter seeded into it. Now, I haven't added this into the phpAdmin system, but I can show you what needs to be added.

Wherever the call is made in the phpAdmin code to call your stored procedure or inline SQL you must adjust the the system as follows:

PHP Code:
if (function_exists(‘mysqli_options’)) {
         
mysqli_options($this->_connectionID/*CLIENT_MULTI_RESULTS*/0×200001);
      } 
This information was taken from:
Geek Building The Bridge Part 2 » Blog Archive » PHP Adodb’s mysqli call-stored-proc patch

I did use this with the PHP ADODB library set and posted my fix at:
Help please with adodb calling stored procedure in mysql db - PHPBuilder.com

Hope this helps!

Kind Regards,
Chris Danielson
MaxPowerSoft, LLC
Reply With Quote
Must read Review for Serious PHP Developers


NuSphere PhpED 5.0 : The Staff of php-editors.com recently spent a few days working with NuSphere PhpED 5.0 (a popular PHP IDE) and NuCoder 1.4 (a PHP Encoding Utility), read up on all the details.

Sponsored Links
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:33 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© Copyright 2003-2008 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.