Hi
i'm try to search record with pertcluar record
My product ID is autonumber & user enter the Product Name
i need to find from my Product ID from Product Name ( pnam )
can any body know's where is the problem in my codeing ?
here is the code
[PHP]
Dim prid, Conn1, tstkprd
set Conn1 = Server.CreateOb ject("ADODB.Con nection")
Conn1.Open ConString
Set rstkprd = Conn1.Execute(" select productID from products where productName= '"&pnam&"'")
response.write rstkprd("produc tName")
prid = rstkprd("produc tID")
rstkprd.Close
set rstkprd = Nothing
Conn1.Close
set Conn1 = Nothing
[/PHP]
i'm try to search record with pertcluar record
My product ID is autonumber & user enter the Product Name
i need to find from my Product ID from Product Name ( pnam )
can any body know's where is the problem in my codeing ?
here is the code
[PHP]
Dim prid, Conn1, tstkprd
set Conn1 = Server.CreateOb ject("ADODB.Con nection")
Conn1.Open ConString
Set rstkprd = Conn1.Execute(" select productID from products where productName= '"&pnam&"'")
response.write rstkprd("produc tName")
prid = rstkprd("produc tID")
rstkprd.Close
set rstkprd = Nothing
Conn1.Close
set Conn1 = Nothing
[/PHP]
Comment