$dept_result = array();
$i = 0;
while($row = mysql_fetch_array($result_dept, MYSQL_ASSOC))
{
$dept_result[$i] = row['department'];
$i++;
}
I just need an array built from my query. But I was wondering if there is a cleaner way of doing this or is this pretty much it.
Thanks.