
本人菜鸟,用Dreamweaver8的ASP VB做网站,在窗口》绑定》记录集 里测试时出现FROM 子句语法错误。在线等
不知道和程序有没有关系:<%@LANGUAGE="VBSCRIPT"CODEPAGE="936"%><!--#includefile="Connections/guanl...
不知道和程序有没有关系:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="Connections/guanli.asp" -->
<%
Dim gl
Dim gl_numRows
Set gl = Server.CreateObject("ADODB.Recordset")
gl.ActiveConnection = MM_guanli_STRING
gl.Source = "SELECT * FROM T-guanli ORDER BY id DESC"
gl.CursorType = 0
gl.CursorLocation = 2
gl.LockType = 1
gl.Open()
gl_numRows = 0
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>管理员资料</title>
<link href="css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table width="780" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<th scope="col"><div align="center" class="bj">管 理 员 资 料</div></th>
</tr>
<tr>
<td class="fk_table"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<th align="center" class="fk_bk" scope="col">添加管理员资料 | 查找管理员资料 | 退出管理员资料</th>
</tr>
<tr>
<td class="fk_bk"> </td>
</tr>
<tr>
<td><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#00CCFF">
<tr>
<th width="100" bgcolor="#FFCC99" scope="col">姓 名</th>
<th width="80" bgcolor="#FFCC99" scope="col">性 别</th>
<th width="80" bgcolor="#FFCC99" scope="col">年 龄</th>
<th width="120" bgcolor="#FFCC99" scope="col">电 话</th>
<th bgcolor="#FFCC99" scope="col">地 址</th>
<th width="50" bgcolor="#FFCC99" scope="col">编 辑</th>
<th width="50" bgcolor="#FFCC99" scope="col">删 除</th>
</tr>
<tr>
<td bgcolor="#FFCC99"> </td>
<td bgcolor="#FFCCCC"> </td>
<td bgcolor="#FFCCCC"> </td>
<td bgcolor="#FFCCCC"> </td>
<td bgcolor="#FFCCCC"> </td>
<td bgcolor="#FFCCCC"> </td>
<td bgcolor="#FFCCCC"> </td>
</tr>
</table></td>
</tr>
<tr>
<th height="30" align="right">第一页 | 上一页 | 下一页 | 最后一页</th>
</tr>
</table></td>
</tr>
<tr>
<th class="bj">xx网络社区©版权所有</th>
</tr>
</table>
</body>
</html>
<%
gl.Close()
Set gl = Nothing
%> 展开
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="Connections/guanli.asp" -->
<%
Dim gl
Dim gl_numRows
Set gl = Server.CreateObject("ADODB.Recordset")
gl.ActiveConnection = MM_guanli_STRING
gl.Source = "SELECT * FROM T-guanli ORDER BY id DESC"
gl.CursorType = 0
gl.CursorLocation = 2
gl.LockType = 1
gl.Open()
gl_numRows = 0
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>管理员资料</title>
<link href="css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<table width="780" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<th scope="col"><div align="center" class="bj">管 理 员 资 料</div></th>
</tr>
<tr>
<td class="fk_table"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<th align="center" class="fk_bk" scope="col">添加管理员资料 | 查找管理员资料 | 退出管理员资料</th>
</tr>
<tr>
<td class="fk_bk"> </td>
</tr>
<tr>
<td><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#00CCFF">
<tr>
<th width="100" bgcolor="#FFCC99" scope="col">姓 名</th>
<th width="80" bgcolor="#FFCC99" scope="col">性 别</th>
<th width="80" bgcolor="#FFCC99" scope="col">年 龄</th>
<th width="120" bgcolor="#FFCC99" scope="col">电 话</th>
<th bgcolor="#FFCC99" scope="col">地 址</th>
<th width="50" bgcolor="#FFCC99" scope="col">编 辑</th>
<th width="50" bgcolor="#FFCC99" scope="col">删 除</th>
</tr>
<tr>
<td bgcolor="#FFCC99"> </td>
<td bgcolor="#FFCCCC"> </td>
<td bgcolor="#FFCCCC"> </td>
<td bgcolor="#FFCCCC"> </td>
<td bgcolor="#FFCCCC"> </td>
<td bgcolor="#FFCCCC"> </td>
<td bgcolor="#FFCCCC"> </td>
</tr>
</table></td>
</tr>
<tr>
<th height="30" align="right">第一页 | 上一页 | 下一页 | 最后一页</th>
</tr>
</table></td>
</tr>
<tr>
<th class="bj">xx网络社区©版权所有</th>
</tr>
</table>
</body>
</html>
<%
gl.Close()
Set gl = Nothing
%> 展开
2个回答
展开全部
我粗略地看了下,可能是你的数据库的名字有问题,T-guanli 。
我现在也都是自己写链接数据库了,DW自动生成的那个太复杂,有很多冗余的部分。希望楼主可以自己锻炼哦。祝你成功。
我现在也都是自己写链接数据库了,DW自动生成的那个太复杂,有很多冗余的部分。希望楼主可以自己锻炼哦。祝你成功。
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询