December 13, 200718 yr Hi, I'm trying to get a page to display a picture from a database with parameters set by the querystring, as I need the page to be able to retrieve information from different tables. I know that the page CAN access the database (it works otherwise). I think the problem is in the final response.write line, because I've used a variable in the (adoCon()) statement, so assuming I'm correct there, how do I get it to work? Set adoCon = Server.CreateObject("ADODB.Recordset") If project <> "null" then getimg = "SELECT [" & column & "] FROM " & tb & " WHERE ID=" & project else getimg = "SELECT [" & column & "] FROM " & tb end if response.write "<img src='" & (adoCon( & column & )) & "'>" EDIT: Soz, I've managed to fix it myself, worry not
Create an account or sign in to comment