logo-dw

Go Back   Dreamweaver Club Forums > Hand Coders Forum > PHP
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 11-16-2011, 07:14 PM   #1
NerdArmy
 
Join Date: Nov 2011
Location: Chicago
Posts: 9
Default Setting images from a mysql db as background images

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.
NerdArmy is offline   Reply With Quote
Old 11-18-2011, 06:56 AM   #2
edbr
edbr's Avatar
 
Join Date: Aug 2005
Location: Bali
Posts: 11,164
Default

not sure , it may be possible if the style is on the page (ie in the head> but it wont stop them if they use view background image
__________________
If you're happy and you know it shake your meds!
different style links examples

Flight / Hotel search
Free script download
Bali Villas
edbr is offline   Reply With Quote
Old 11-18-2011, 12:51 PM   #3
domedia
Administrator
domedia's Avatar
 
Join Date: Dec 2003
Posts: 9,730
Default

Just like you display the result from mysql in <IMG> tags, now insert them as background images.

<element style="background: url(path/file.jpg)">

This will not stop people from copying your images though. In order to show it on a users monitor, it has to be downloaded to their computer. But that is another discussions I guess.

.
domedia is offline   Reply With Quote
Old 11-22-2011, 11:27 PM   #4
NerdArmy
 
Join Date: Nov 2011
Location: Chicago
Posts: 9
Default

I know it won't stop them from copping my images I just want to make it a little harder. Thanks for the reply.
NerdArmy is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:33 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com