<? $region2="La Rioja"; $select="SELECT * FROM concursantes WHERE region = '".$region2."' "; $query=mysql_query($select) or die(mysql_error()); while($reg=mysql_fetch_array($query)){