Hi Guys...
I need your help since I am stuck here with the following code... what I need is to display data from SQL database
using ASP with '?' from another page.
The '?' query is:
Please help... Thanks.
<html>
<head>
<%
Set rstCurrent = Server.CreateObject("ADODB.Recordset")
rstCurrent.activeconnection= ("DRIVER={SQL Server};SERVER=SQL2000;DATABASE=database1;UID=user;PWD=password")
rstCurrent.source = "SELECT * FROM TodaySale"
rstCurrent.Open
ShowProduct = rstCurrent("SaleItem")
rstCurrent.movefirst
do while not rstCurrent.eof
Item="ShowProduct"
rstCurrent.Close
%>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>TodaySale</title>
</head>
<body>
<table border="1" width="100%" id="table1">
<tr>
<td>
<p align="center"><%=Item%></td>
</tr>
</table>
</body>
</html>
I need your help since I am stuck here with the following code... what I need is to display data from SQL database
using ASP with '?' from another page.
The '?' query is:
Please help... Thanks.
<html>
<head>
<%
Set rstCurrent = Server.CreateObject("ADODB.Recordset")
rstCurrent.activeconnection= ("DRIVER={SQL Server};SERVER=SQL2000;DATABASE=database1;UID=user;PWD=password")
rstCurrent.source = "SELECT * FROM TodaySale"
rstCurrent.Open
ShowProduct = rstCurrent("SaleItem")
rstCurrent.movefirst
do while not rstCurrent.eof
Item="ShowProduct"
rstCurrent.Close
%>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>TodaySale</title>
</head>
<body>
<table border="1" width="100%" id="table1">
<tr>
<td>
<p align="center"><%=Item%></td>
</tr>
</table>
</body>
</html>