HI, I have some problem when I'm trying to access data from 1 page to another using the ProductID.
First Page - This one seems to be OK
<a href="mobilephonesdetails.asp?Productid=<%= rs.Fields("ProductID").Value %>"><%= rs.Fields("Model").Value %>
I want that the previous link for example mobilephonesdetails.asp?ProductID=2
will be displayed to another page. I already have the following code:
asp Code:
<%
set conn=Server.CreateObject("ADODB.Connection")
conn.Provider="Microsoft.Jet.OLEDB.4.0"
conn.Open(Server.Mappath("technocom.mdb"))
set rs = Server.CreateObject("ADODB.recordset")
rs.Open "SELECT ProductID, Logo, Model, Image1, Brand FROM Products WHERE productID=[COLOR="DarkOrange"]2[/COLOR]", conn
%>
</p>
<table border="0" cellpadding="10" cellspacing="10">
<tr>
<td width="151"><img src="<%= rs.Fields("Image1").Value %>" width="139" height="184"></td>
<td width="152"> </td>
</tr>
</table>
<%
' Close our recordset and connection and dispose of the objects
rs.Close
set rs = Nothing
conn.Close
set conn = Nothing
%>