热点问题

sxh007vip 2003-12-29 03:01:58
大家好 我想请教一个问题 我在搞一个网站 做一个搜索页,查找1年龄 2性别 3学历
怎么做哦 我准备用FRONTPAGE 2003 调用ACCESS 2003数据库 具体怎么做 请指点 我装的系统是WINXP SP1 ACCESS数据库怎么配置 怎么老是要我必须输入服务器 我想全部做好再上传 数据表已经建好 具体怎么操作 请就要点告诉于我
我赶时间 请各位多帮忙!
...全文
65 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
sxh007vip 2003-12-31
  • 打赏
  • 举报
回复
那我该怎么搞啊 能说的详细点吗
我想用最简单的方法
happyamang 2003-12-30
  • 打赏
  • 举报
回复
用DW调用数据库的话垃圾代码好多的!
hjz166 2003-12-30
  • 打赏
  • 举报
回复
用那个我不知道,但DW可以调用数据库的,而且特别方便
happyamang 2003-12-29
  • 打赏
  • 举报
回复
看看这个例子
我没有改
这是查询会员的
<!--#include file="../conn.asp" -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>搜索结果</title>
<link href="css1.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
a:link {
font-family: "宋体";
font-size: 12px;
color: #0066FF;
text-decoration: none;
}
a:active {
font-family: "宋体";
font-size: 12px;
color: #0066FF;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #FF0000;
}
a:hover {
text-decoration: none;
color: #FF0000;
}
-->
</style>
</head>

<body>
<%
Function repl_keyword(str)
repl_keyword=replace(str,keyword,"<font color='#FF3300'>"&keyword&"</font>")
End Function
%>
<%
Dim keyword
keyword=replace(Trim(Request.Form("keyword")),"'","")
SQLStr="SELECT id,username,linkman,com_name,address FROM user_info WHERE username LIKE '%"&keyword&"%' OR linkman LIKE '%"&keyword&"%' OR com_name LIKE '%"&keyword&"%' OR address LIKE '%"&keyword&"%'"
Set RS=Server.CreateObject("ADODB.RecordSet")
RS.Open SQLStr,Conn
If NOT RS.Eof Then
%>
<center>
<p><FONT color=#990000 size="2"><strong>搜索结果</strong></FONT></p>
<table width="100%" border="0" bgcolor="#CCFFFF">
<tr align="center" bgcolor="#33CCFF" class="font14">
<td>用户名称</td>
<td width="25%">公司名称</td>
<td width="25%">公司地址</td>
<td> 联 系 人</td>
<td>操作</td>
</tr>
<%
DO While Not RS.eof
username=repl_keyword(RS("username"))
linkman=repl_keyword(RS("linkman"))
com_name=repl_keyword(RS("com_name"))
address=repl_keyword(RS("address"))
%>
<tr bgcolor="#99FFFF" class="font12">
<td><a href="show.asp?id=<%=RS("id")%>"><%=username%></a></td>
<td><%=com_name%></td>
<td><%=address%></td>
<td><%=linkman%></td>
<td><span class="font12bgc"><a href="edit.asp">修改</a></span> <span class="font12bgc">批准权限</span>
<span class="font12bgc">删除</span></td>
</tr>
<%
RS.MoveNext
If Not RS.eof Then
username=repl_keyword(RS("username"))
linkman=repl_keyword(RS("linkman"))
com_name=repl_keyword(RS("com_name"))
address=repl_keyword(RS("address"))
%>
<tr class="font12">
<td><a href="show.asp?id=<%=RS("id")%>"><%=username%></a></td>
<td><%=com_name%></td>
<td><%=address%></td>
<td><%=linkman%></td>
<td><span class="font12bgc">修改</span> <span class="font12bgc">批准权限</span>
<span class="font12bgc">删除</span></td>
</tr>
<%
End If
If Not RS.eof Then
RS.MoveNext
End If
LOOP
%>
</table>
</center>
<%
End If
RS.Close
Set RS=Nothing
Conn.Close
Set Conn=nothing
%>

</body>
</html>
flybird66 2003-12-29
  • 打赏
  • 举报
回复
用dw吧,这个做网站才比较方便.
如果要查这东西的话,你还需要知道sql语言.
sxh007vip 2003-12-29
  • 打赏
  • 举报
回复
不用写程序 能不能完成啊 我 可不可以直接搞呢

1,451

社区成员

发帖
与我相关
我的任务
社区描述
多媒体/设计/Flash/Silverlight 开发 图象工具使用
社区管理员
  • 图象工具使用社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧