MySQL Forums
Forum List  »  PHP

Re: Fatal error: Uncaught Error: Call to undefined method mysqli_stmt::fetch_assoc()
Posted by: Peter Brawley
Date: November 25, 2018 03:18PM

Read for how to code for the possibility of error with prepare().

If you don't understand the reported problem, code echo calls to bring the query strings to console, copy & paste them into a mysql client program instance so you can find the sql problems.

[i[Every[/i] call that can elicit errors needs error coding. No exceptions. Do you need the same sort of error coding round execute() & fetch() calls.

Edited 1 time(s). Last edit at 11/05/2019 07:36AM by Peter Brawley.

Options: ReplyQuote

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.