Skip to main content
November 16, 2011
Question

Setting images from a mysql db as background images

  • November 16, 2011
  • 2 replies
  • 1596 views

I have a simple question. How do you set mysql image results as background images. I already know how to display images from a mysql db so know need to explain that process. I also know how to set images as backgrounds using css. However setting mysql results as background images is a different process.  I need to know this because I'm creating a image gallery and I don't want people dragging images off the page, thanks in advance.

This topic has been closed for replies.

2 replies

Participating Frequently
November 16, 2011

You can try the methods discussed in this thread: http://www.daniweb.com/web-development/php/threads/160935

>I need to know this because I'm creating a image gallery and

>I don't want people dragging images off the page, thanks in advance.

Why bother? As shocker says, there a plenty of other simple methods people can use to get your images - if they're displaying on the visitors PC they've already been downloaded.

November 16, 2011

I know people can simply right click and view background images, but I also know allot people who aren't as browser savy won't. thanks for the link.

MurraySummers
Inspiring
November 16, 2011

I also know allot people who aren't as browser savy won't.

They aren't the ones you need to worry about anyhow....

November 16, 2011

I need to know this because I'm creating a image gallery and I don't want people dragging images off the page

That will not prevent users from obtaining your images through alternative methods.

best,

Shocker