By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,751 Members | 1,158 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,751 IT Pros & Developers. It's quick & easy.

calling MySQL stored function using mysql_

P: n/a
Hello,
I have little experience in PHP+MySQL programming. I need your help in such
problem: how to call stored MySQL function from PHP5 code using mysql_
interface? I failed to find solution in Internet.
Please help. Thank you!

Oct 18 '08 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Jivanmukta wrote:
Hello,
I have little experience in PHP+MySQL programming. I need your help in such
problem: how to call stored MySQL function from PHP5 code using mysql_
interface? I failed to find solution in Internet.
Please help. Thank you!

Just like any other MySQL query - with mysql_query().

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================

Oct 18 '08 #2

P: n/a
Jivanmukta wrote:
Hello,
I have little experience in PHP+MySQL programming. I need your help in such
problem: how to call stored MySQL function from PHP5 code using mysql_
interface? I failed to find solution in Internet.
Please help. Thank you!
Just use the SQL syntax:
For a procedure, do
mysql_query('CALL yourProcedure()');
and for a function do
mysql_query('SELECT yourFunction()');
Oct 19 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.