%
imei=Request.QueryString("imei")
Set connection = Server.CreateObject("ADODB.Connection")
connection.Open("stock")
SQL = "SELECT * FROM Product WHERE IMEI like '"&imei&"';"
Set list = connection.Execute(SQL)
' We check if the product exists in the database
If list.EOF then
Response.Redirect("../stock/prodnotfound.asp")
End If
%>