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