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