MySQL Forums
Forum List  »  Stored Procedures

Calling stored procedure from PHP
Posted by: Preston McMurry
Date: March 18, 2005 05:58PM

Grepped this site and Google as well, and only found one (sorta) example. I'm familiar with PHP, SQL and stored procedures in general, but am unsure as to the proper syntax for combining them in MySQL. Here is a conversation with someone else where I work:

-----

Them: So, If we were using some sort or query execute method, it would be similar to

$db->query(“call StoredProcedure(param, param);”);

I’m asking cause I don’t know.

-----

Me: That looks like the syntax to me ... well, except in PHp it would probably be more like:

$db->query('call StoredProcedure($paramX, $paramY)');

-----

We are currently using 4.1.9-nt, and are thinking about changing to 5.0.x, thus the question (and lack of experience ...)

http://prestonm.com ... http://www.mcmurry.com

Options: ReplyQuote


Subject
Views
Written By
Posted
Calling stored procedure from PHP
59427
March 18, 2005 05:58PM
8441
November 26, 2008 05:09AM
22269
April 25, 2005 01:10PM
3973
October 22, 2006 10:03PM
4063
November 03, 2006 02:30AM


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.