Jump to content

bind_result: prepared statements


Cep

Recommended Posts

Hello,

 

Just a quick question really as the PHP docs aren't specifically clear on this issue.

 

If I create a prepared statement in mysqli to select all records in a table such as, SELECT * FROM table WHERE id = ?, when I return the values using mysqli_bind_result (OOP style) are the fields returned in the order they are found in the table?

 

For example my table fields from left to right are "id", "name", "date" does this mean my mysqli_bind_result should be mysqli_bind_result($id, $name, $date);

Link to comment
https://forums.phpfreaks.com/topic/88870-bind_result-prepared-statements/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.