I have made two Procedures in PHPMyAdmin and are working absolutely correct on clicking the EXECUTE option. However when I run this PHP code the first procedure gives the result but the second does not.
<?php
include "mysql_connect.php";
$query=mysql_query("CALL most_complaints_against();");
$mla_most=mysql_result($query,0,0);
$query=mysql_query("CALL least_complaints_against();");
$mla_least=mysql_result($query,0,0);
print "$mla_most....$mla_least";
?>
OUTPUT:
Warning: mysql_result() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\sample.php on line 8
[value of $mla_most]....