Create dynamic associated array. Please help!

f1nir_

New Member
I got a database with 2 fields (amount and name).I want to get all data from the database (40 rows) and create an associated array out of it like this.\[code\]$arr = array("amount" => "12", "name" => "John");\[/code\]How is this done dynamically in PHP? I am stuck.
 
Back
Top