versuchen Sie Folgendes:
$query = mysql_query('select * from table');
foreach ($data = mysql_fetch_object($query)) {
$array[$data->industry][] = $data->category;
}
print_r($array);
versuchen Sie Folgendes:
$query = mysql_query('select * from table');
foreach ($data = mysql_fetch_object($query)) {
$array[$data->industry][] = $data->category;
}
print_r($array);