[eluser]Unknown[/eluser]
For example if I do
Code:
Select * from Persons
Where Person has the columns: Name (Primary Key), Address, Phone
And I turn the returned Rows as an array I'll get
Code:
[0] => Array
(
[Name] => John Mang,
[Address] => 123 Fake St,
[Phone] => 1234567
)
[1] => Array
(
[Name] => George Mang,
[Address] => 123 Not Fake St,
[Phone] => 555555
)
But is there a way to get it so it'll be like
Code:
["John Mang"] => Array
(
[Name] => John Mang,
[Address] => 123 Fake St,
[Phone] => 1234567
)
["George Mang"] => Array
(
[Name] => George Mang,
[Address] => 123 Not Fake St,
[Phone] => 555555
)
Thanks.