Please help me solve this frustrating problem guys. Could really do with
solving this problem.
Why won't this work:
$items = array();
while ($row = mysql_fetch_assoc($result))
{
$items[] = $row;
}
// tracker
$currentRow = 4;
foreach ($items as $value)
{
foreach ($value as $filed_name => $value_name)
{
$cart->writeRow($currentRow, 0, $value_name);
$currentRow++;
}
}
When this does:
$items = array(
array('Client'=>'client1', 'Director'=>'G.B', 'Manager'=>'E. Harte'),
);
$currentRow=4;
foreach($items as $item=>$value)
{
$cart->writeRow($currentRow, 0, $value);
$currentRow++;
}