比如我数据库有
产品表product,字段product_id(产品编号),字段product_name(产品名字),字段product_content(产品内容)
新闻表news,字段news_id(新闻编号),字段news_title(新闻标题),字段news_content(新闻内容)
jsp页面
<h3>搜索</h3>
<div id="search">
<input type="text" class="search" />
<input type="submit" class="submit" value="搜索" />
</div>
我想实现一个搜索功能,对产品表和新闻表都要进行搜索,怎么实现?在线等!!!!!
产品表product,字段product_id(产品编号),字段product_name(产品名字),字段product_content(产品内容)
新闻表news,字段news_id(新闻编号),字段news_title(新闻标题),字段news_content(新闻内容)
jsp页面
<h3>搜索</h3>
<div id="search">
<input type="text" class="search" />
<input type="submit" class="submit" value="搜索" />
</div>
我想实现一个搜索功能,对产品表和新闻表都要进行搜索,怎么实现?在线等!!!!!
可以看一个做好的实例:http://www.chinaot.com/search/all/engine.html?q=%E5%8F%91%E5%85%89%E6%9D%90%E6%96%99