I get a
Commands out of sync; you can't run this command now
error when I try to run my second SQL store procedure. The first call executes fine, but when I call the second SQL procedure elsewhere in my code I see this error. Do I have to close the first connection before adding the second one?
First call procedure:
<center><?php
$sql="call DisplayRandomTable('db', 'table1', 10)";
$result = mysqli_query($conn, $sql);
?></center>
Second call procedure: //Errors here
<?php
$sql="call GetTableCount('bista', 'S_Student')";
$result = mysqli_query($conn, $sql);
?>