How to store MySql values as Multidimensional Array using PHP

Roobiavam

New Member
I have a database table as follows.\[code\]<table border='1'><th>Id</th><th>FirstName</th><th>last Name</th><tr><td>1</td><td>Tom</td><td>T</td></tr><tr><td>2</td><td>Jerry</td><td>J</td></tr></table>\[/code\]I would like to store all values as a multi dimensional array using php(using a while loop to retrieve fields).That is,I would like the data to be echoed as:\[code\]array(array(1,Tom,T),array(2,Jerry,J));\[/code\]
 
Back
Top