Hi. I'm currently trying my hands on PHP and MySQL.
I understand how to retrieve results from SELECT statements in PHP? However, I'm not exactly sure of how to do it when a procedure call is made e.g.
$query = "CALL mach_validity($student_id, @result)";
[B]if[/B] ($result = $mysqli->query($query)
{ [B]while[/B]($row = $result->fetch_assoc())
{ $ returned_val =$row['@result']}
}
...(code continues)
1 row is expected from the CALL statement so there may be no need of the While Loop.
Can someone please help?