Quote:
Originally posted by Mister B.
autonumber. Post I D
|
ok, well, since it's a number, then you don't need the ' in there.
so, change it to this:
strSQL = "SELECT * FROM post WHERE pid = " & Replace(Request("pid"),"'","")
Note: I put the replace function in there to protect you from SQL injection attacks. Instead of using the replace, you could check the input and make sure it's a numeric.