Je hebt extra $row = mysql_fetch_array($rs); net na mysql_query($strSQL); . Dan in while loop lees je $row nogmaals (tweede rij in de resultatenset). Dus je code ziet er
$strSQL = "SELECT id_quarto FROM quartos
WHERE tipo_quarto='". $_POST['tipo_quarto'] ."'
AND vista_quarto='". $_POST['vista_quarto'] ."'";
$rs = mysql_query($strSQL);
// $row = mysql_fetch_array($rs); Don't need this line!!!
while($row = mysql_fetch_array($rs))
{
// output ....
}
Het is ook altijd logisch om code toe te voegen voor het afhandelen van mysql-fouten.