When I delete a record from the database, even when it is successful, all I ever get is int(0). What am I doing wrong? The manual does not give an example of this with a procedure.
$foo = db::getInstance()->exec("CALL deleteUser(222)");
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
My hunch is that it has something to do with the fact that you are calling an SP instead of a ‘regular’ SQL query. I’m not too familiar with SP’s, but maybe you should return the number of deleted rows from within the SP? Just a thought.