"fieldlist" is a placeholder for a list of columns from YOUR table.
eg
SELECT title,description,author FROM
"table" should be replaced with YOUR table name
"table.id" should be replaced with YOUR table name and the column for the ID No
remove the [ ] from around the variable name and concatenate the variable value onto the string
eg
... mytable.id = " & varf & ";", conn, 1, 3
ENSURE THAT YOU "sanitise" the value coming from the querystring to minimise SQL injection attack risk, AND variables recovered from a form or querystring will be string. Your ID value is more likely to be an integer, so will need "casting" to an integer value with
Code:
varf=cint(Request.QueryString("f"))
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
|