what do you mean by empty result? what's the output of print_r($result);?
also, did you mean
$result[result] = array_merge($result1, $result2);
when just
$result = array_merge($result1, $result2);
would do.
have you checked that $result1 and $result2 are both as expected before the merge?
you could do it all in the one array like this:
$sql = //first query;
$query = mysql_query($sql,$c);
while ($result=myql_fetch_assoc($query)) {
$data[] = $result;
}
$sql = //second query;
$query = mysql_query($sql,$c);
while ($result=myql_fetch_assoc($query)) {
$data[] = $result;
}
you will end up with an array, $data, containing all your results in the correct order.