// Find the image you want to display myCursor = myConn.cursor("SELECT path FROM images WHERE img = 1"); // Write the tag to the page with the attributes set write(myCursor.path.blobLink("image/gif", "Click Here!")); // Close the cursor myCursor.close();