MySQL Forums
Forum List  »  PHP

little help with stored procedure call
Posted by: m m
Date: April 08, 2006 08:11AM

Hi,

I'm calling a stored procedure from a PHP script - which works - but then all subsequent SQL queries fail with the message:

"Lost connection to MySQL server during query"

My procedure runs fine in the MySql prompt, it just does something simple for testing like SELECT COUNT(*) AS something FROM my_table.

Then my PHP script looks like:


$result = mysqli_query($conn, "call sp_FirstTry()");
if (!$result) {
return "Failed executing stored proc: [" . mysqli_error($conn) . "]";
}

// Fails on this next call?
$result = mysqli_query($conn, "SELECT * FROM my_table");
if (!$result) {
return "Failed on next SQL interaction!?!?!?: [" . mysqli_error($conn) . "]";
}

Any ideas what's going on?

Thanks

Options: ReplyQuote


Subject
Written By
Posted
little help with stored procedure call
m m
April 08, 2006 08:11AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.