Object of class mysqli_result could not be converted to string in XYZ

His confusion has been confused here.

One he came with is pretty clear and I explained it to him already. He was doing something like this

$result = $mysqli->query("query");
$mysqli->query("SELECT * FROM table WHERE result = $result");

While his “cryptic” messages belong to allegedly not working prepared statements, but the OP seems not willing to participate in this latter topic.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.