I've found some more info on this matter which may help someone in the future
To only show records where id is 1 [or with a condition] using SQL:
-
sql= "select * from your_table_name where ID= 1"
-
To manipulate a returned recordset:
-
if rs("id") = 1 then
-
response.write something
-
end if
-
I have a sql db table with 38 rows of data - and I would like to dispay each row on a seperate html table using the manipulated recordset method
so far I've been able to select all from the table and use the manipulated recordset to display the first row. But I'm unable to display the second row? do I have to open up a new connection and query the database each time to display the second row and so forth? so I have to open and close the connection to the database 38 times?
this seems a bit long winded as I have to redeclare & rename variables 38 times.
thanks in advance
Omar.