Is it possible to fetch_object while using bind_param? (PHP/MySQLi)?

I just dug around in my Database class and this is how I do it. Honestly I don't remember why I needed to do it this way and there might be a much better way. But if it helps you here is the code.

I do vaguely remember being irritated about there not being a simple way to get your results as an object.

You are giving mysqli an invalid query and so it is not creating an object for you. The problem is not the fetch_object, but the prepare statement. Remove the ';' and try again.

It should work like a charm.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions