DROP PROCEDURE `test`//
CREATE DEFINER=`user`@`localhost` PROCEDURE `test`()
BEGIN
SELECT * FROM `database`.`tablecds`;
END
$sql = "CALL test();" or die(mysql_error());
mysql_query($sql, $con);
$sql = "SELECT @cd;";
$result = mysql_query($sql, $con);
$row = mysql_fetch_assoc($result);
$echo= $row['cd'];
ASKER
ASKER
$rs = mysql_query( 'CALL test()' );
while($row = mysql_fetch_assoc($rs))
{
debug($row);
}
ASKER
PHP is a widely-used server-side scripting language especially suited for web development, powering tens of millions of sites from Facebook to personal WordPress blogs. PHP is often paired with the MySQL relational database, but includes support for most other mainstream databases. By utilizing different Server APIs, PHP can work on many different web servers as a server-side scripting language.
TRUSTED BY
If you post the exact result or error, that will be helpful to solve this issue.
Anyway, this link very useful and show different way to call stored procedure from PHP:
http://www.joeyrivera.com/