Pyh.conf’25: a new PHP conference for the Russian-speaking community

Voting

: four plus one?
(Example: nine)

The Note You're Voting On

Miles
16 years ago
You can use prepared statements on stored procedures.

You just need to flush all the subsequent result sets before closing the statement... so:

$mysqli_stmt = $mysqli->prepare(....);

... bind, execute, bind, fetch ...

while($mysqli->more_results())
{
$mysqli->next_result();
$discard = $mysqli->store_result();
}

$mysqli_stmt->close();

Hope that helps :o)

<< Back to user notes page

To Top