Jump to content

Creating An Array From A Mysql Query.


00stuff

Recommended Posts

Hi, I am trying to create an array from a mysql query that looks like this.

 

$people = array(

 

"8776546543" => "John Smith",

"8779876543" => "John Dow",

 

);

 

 

I need for that array to come from two columns of a mysql query and be placed on the $people variable. I am not sure how to do it. Can some one help me please?

Link to comment
https://forums.phpfreaks.com/topic/269925-creating-an-array-from-a-mysql-query/
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.