【急】ASP查询Access数据库!
发布网友
发布时间:2024-10-22 06:47
我来回答
共1个回答
热心网友
时间:2024-11-29 11:33
<html>
<head>
<title>Query by last name</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body bgcolor="#FFFFFF">
<p align="center"><font size="5">Query by last name</font></p>
<form method="post" action="asplookup.asp">
<div align="center">
<table width="46%" border="0">
<tr>
<td width="28%">
<div align="right">lname</div>
</td>
<td width="72%">
<input type="text" name="lastname" id="lastname">
</td>
</tr>
<tr>
<td width="28%"></td>
<td>
<input type="submit" name="submit" value="Submit">
<input type="reset" name="reset" value="Reset">
</td>
</tr>
</table>
</div>
</form>
</body>
</html>
-------------------
sql="SELECT * FROM Table1 where lname='"&lastname&"' Order By lname DESC"
还不行的话给我发站内消息!