Storing database records into array

Posted by zerey on Stack Overflow See other posts from Stack Overflow or by zerey
Published on 2011-03-20T03:41:26Z Indexed on 2011/03/20 8:09 UTC
Read the original article Hit count: 161

Filed under:
|
|

I would want to create an array that will hold records retrieved from a database using a query of SELECT statement.

The records to be retrieved have multiple fields such as lastname, firstname, mi and 20 more fields. What would be the best approach on coding this function?

alright i have followed what prisoner have given below.. the next question is how do i search through this kind of array using queries? for example i want to search for a username..

© Stack Overflow or respective owner

Related posts about php

Related posts about mysql