Help with SQL query and associative array
Posted 09 April 2006 - 10:11 PM
Can someone please help?
The reason i need to get this data into an associative array is because the data represents a report I need to export into Excel via the xlsStream class.
Any help would be much appreciated. I need to get this done for my boss ASAP.
Thanks. I am desperate.
Posted 10 April 2006 - 12:51 AM
Here is the code i have for this:
$ItemNum = $row['ItemNum'];
$Place = $row['Place'];
$QR = 1;
for ($i=0; $i<5; $i++)
$assoc = array(array("ItemNum" => $ItemNum, "Place" => $Place, "QR" => $QR));
Thank you very much in advance.
Posted 10 April 2006 - 01:14 AM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users