No $res is NOT an array, $res is a result index.
this is the way, Abe:
$query = "SELECT t1.* FROM table t1";
$result = mysql_query ( $query );
$results = array ();
$a = 0;
while ( $row = mysql_fetch_array () )
$results [ $a++ ] = $row;
// or in php4:
while ( $results [] = mysql_fetch_array () )
;
Next time, check the manual, it's all there.