your code: (with shorter variable names), does the SELECT and then calls db_result_to_array, which will build your array. On return from this function, you data will be in an array.
$query= 'SELECT user_responsible FROM ' . $Table . ' WHERE category="' . $_POST['category'] . '" ORDER BY cat_no LIMIT ' . $num_eng_assigned . '';
$result = @($query);
if (!$result)
return false;
$chk = @mysql_num_rows($result);
if ($chk ==0)
return false;
else
$result = db_result_to_array($result);
return $result;
function db_result_to_array($result)
{
$res_array = array();
for ($count=0; $row = @mysql_fetch_array($result); $count++)
$res_array[$count] = $row;
return $res_array;
}