I have the following code:
//-------------------------------------------------------------------------- // 2) Query database for data //---------------
Try:
$result = mysql_query("SELECT * FROM $tableName"); while($row = mysql_fetch_array($result)) { $array[]=array($row[0], $row[1],...); }
This will generate a multidimentional array where the subarray contains your values.