while(mysql_fetch_array($res))
{

}

cosi recuperi tutte le righe che ti interessano