Hi..
I want to call mysql Stored procedure with OUT parameter.
Its worked in phpamyadmin
But in php it returning empty result.
I have used the following php script.
Can anyone help me?
<?php
include("dbcon.php");
$countryname="india";
$rs1 = mysql_query( 'CALL countCountry($countryname,@totalcount)' );
$rs = mysql_query( 'SELECT @totalcount as totalcount' );
$row = mysql_fetch_array($rs);
var_dump($rs);
while($row = mysql_fetch_array($rs))
{
echo $row['totalcount'];
}
?>