Forum Moderators: coopster
while ($row = $conn->fetch_object ()) {
foreach($row as $key=>$value) { $$key[] = $value; }
}
Obviously the $$key[] = $value is incorrect but you can see what I'm trying to accomplish. I want the DB field names to become arrays holding the multiple rows of data without having to specifically assign like this
$orderDate[] = $row->orderDate;
$orderAmount[] = $row->orderAmount;
Thanks.