You are here: how to call stored procedure MySQL 5 from PHP4 « PHP Programming Language « IT news, forums, messages
how to call stored procedure MySQL 5 from PHP4

Posted by Mario Protto on 01/25/07 15:20

hi all,

PHP 4.3.10 and MySQL 5.0, trying

____________________________________
$link = mysql_connect(DB_HOST.":".DB_PORT, DB_USER, DB_PW)
or die("Could not connect:" . mysql_error());
mysql_select_db(DB)
or die("Could not connect:" . mysql_error());

$query = "call
sp_contattoWeb('".$_SESSION['sess_kcliente']."','$kContatto', '$cognome',
'$nome', '$posizione', '$telefono', '$cellulare', '$email','$note', @out)";
$result = mysql_query($query)
or die("<br>KO: $query<br>" . mysql_error() . "<br>");
____________________________________

I get
____________________________________
PROCEDURE dedalo.sp_contattoWeb can't return a result set in the given
context

____________________________________

do I have to upgrade to PHP5, mysqli or is there another way to do that
without weak up my Linux admin ..:)?

thx


Mario
_________________________
WEB: www.mario-online.com
________________________________

 

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

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