Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Problem with ASP reading from database

Featured Replies

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.