'$nP1')"; } else{ $nCur = "rate_th"; $nWhere .= " && ($nCur='$nP1' || $nCur>'$nP1')"; } } if ($_GET[p2]!=""){ $nP2 = $_GET[p2]+0; if ($_COOKIE[SETCUR]!=""){ $nCur = $_COOKIE[SETCUR]; $nWhere .= " && ($nCur<'$nP2' || $nCur='$nP2')"; } else{ $nCur = "rate_th"; $nWhere .= " && ($nCur<'$nP2' || $nCur='$nP2')"; } } $sqlL = mysql_query(" SELECT ownerid, hno, head, headfix, location, link, rate_th, rate_us, rate_eu, breakfast, roomtype FROM s_hotel WHERE ($nWhere) $newOrder LIMIT $_GET[pw], $showpage ", $conx ); $sqlPA = mysql_query(" SELECT id FROM s_hotel WHERE ($nWhere)", $conx ); $nTitle = "$FT[searchtitle]"; $nDescription = "$FT[searchdescription]"; $nKeywords = "$FT[searchkeywords]"; $nSwitchPage = 1; $nFeedURL = "$mdir/feed/hotelpage"; include_once("feed-create.php"); } $numrowPA = mysql_num_rows($sqlPA); include_once("theme-".$FT[theme_hotel]."-hotel.php"); mysql_close($conx); ?>