Can someone please tell me which syntax to use to build the "directory" array from a mysql recordset? Thank you!
$directory = array();
foreach ($resultSetFromDB as $row){
foreach ($row as $field => $value){
$directory[$field][] = $value;
}
}
I can print $field and $value, no problem