急!!求助:asp 多个 关键词 查询的问题

来源:百度知道 编辑:UC知道 时间:2024/04/19 15:26:08
下面这个search.asp 内的 酒店查询代码,酒店星级为 hotelkind 酒店所在城市为 city 酒店名称 为 name 酒店 关键字为 keyword ,本来没有查询 成市的选项,我需要加上一个同时查询酒店所在城市的限制, 经测试,我自己修改的不成功,下面为我自己修改后的部分关键代码,不知道问题出在哪里了(跟这句有关吗:name="city" type="text" id="city2" )?该如何修改?请大家帮帮忙,谢谢!
<tr>
<td align=right height=25>酒店星级:</td>
<td height=25><select name="hotelkind" id="hotelkind">
<option value="0">不限</option>
<option value="67">五星级</option>
<option value="68">四星级</option>
<option value="69">三星级</option>
<option value="71">二星级</option>
<option value="72">一星级</option>
</select></td>
</tr>
<tr>
<td align=right height=25>所在城市:</td>
<td height=25><input name="city" type="text" id="city2" on

把城市提出来使用and链接:
sqlcmd="select id,name,city,smallImg,price from hotel where (name like '%"&keyword&"%' or keyword like '%"&keyword&"%' ) and city like '%"&city&"%' and is_show order by id desc"

其他同理。

你看看www.mice.pudong.gov.com!住在浦东栏的查询!