Create PHP array from MySQL column, using auto_increment column as index

ClemenceL

New Member
Much like this previous question, I wish to store a MySQL column in a php array (as opposed to storing by row). However, I want the array indexes to match those of the database's primary key.For instance, for the following database:\[quote\] id name
1 Joe
2 Mary
9 Tony $name['9'] == "Tony"\[/quote\]Is such a thing possible?Thanks!
 
Back
Top