<%
'declare SQL statement that will query the database
sSQL="SELECT slno,quantity FROM cart WHERE id='" & request.QueryString("hidID") & "' and sessionid=" & session.SessionID
'define the connection string, specify database
'driver and the location of database
sConnString="PROVIDER=Microsoft.Jet.OLEDB.4.0;" & _
"Data Source=" & Server.MapPath("cart.mdb")
'create an ADO connection and recordset
Set connection = Server.CreateObject("ADODB.Connection")
Set recordset = Server.CreateObject("ADODB.Recordset")
'Open the connection to the database
connection.Open sConnString
'Open the recordset object, execute the SQL statement
recordset.Open sSQL,connection
%>