MySQL Forums
Forum List  »  Stored Procedures

Re: Calling stored procedure from PHP
Posted by: chamari Fernando
Date: February 07, 2007 02:28AM

COOL I found a way ....if and only if it is not returning any record sets .As an example if you have a user table and sp to enter data is Insert_Users


$result= mysql_query("CALL Insert_Users('username','useradd1','useradd2','userage')")
or die(mysql_error());
print_r($result)


this will work out .
but im still looking for once that out put record sets .

Options: ReplyQuote


Subject
Views
Written By
Posted
59404
March 18, 2005 05:58PM
8437
November 26, 2008 05:09AM
22260
April 25, 2005 01:10PM
3962
October 22, 2006 10:03PM
4056
November 03, 2006 02:30AM
Re: Calling stored procedure from PHP
6692
February 07, 2007 02:28AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.