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