mysqli_stmt_bind_result

Hi guys

I am currently introducing myself to the wonderful world of prepared statements within mysqli, and seem to be getting the hang of it pretty well.

One thing I just have a question about is the bind_result method. I understand that you have to assign a variable for each field returned by your query, which makes sense, but say you did a select * on a table with 30 fields, would you have to manually create 30 variables, or is there someway of automating this process?

I am currently in the midst of trying to write a function for this, but as you can probably guess I’m not getting very far!

Thanks guys and girls!