try this right after the query, assuming the query records are returned in the resourceID $results
if ($results){
while($row = mysql_fetch_array($results)){
$rows[] = $row;
}
}
Then to access the data in $rows,
if (is_array($rows)){
echo $rows[$x]['coulumn_name'];
}
where $x is the row you want to pull the record from, and coulumnname is the name of the coulumn
or
if (is_array($rows)){
echo $rows[$x][$y];
}
where $x is the row you want to pull the record from, and $y is the index of the column you want