You are here: PHP/5.0.3 & MySQL 5.0.2 Stored procedure (OUT) « PHP « IT news, forums, messages
PHP/5.0.3 & MySQL 5.0.2 Stored procedure (OUT)

Posted by Ian Porter on 02/07/05 22:55

Hi,

I am just wondering how to obtain the result from a mysql procedure OUT
parameter within PHP e.g.

MYSQL
create procedure test_out(OUT testvar int)
BEGIN
select max_connections into testvar from mysql.user limit 1;
END

PHP

$query = 'call test_out('.$test_val.')';
$query_handle = mysql_query($query);

but there is nothing within the $test.val, after searching the web there
appears to be something like this for oracle connection with the bind, but I
cannot find the mysql version ?

Any advice ?

Cheers
Ian

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация