Jump to content

images, databases and php


byrne86

Recommended Posts

I have a site where I need to have lets call it image1 displayed, then I want to change this image based on a php if statement, for instance:

 

if $var == $var2

change the image

....blah blah

 

so I was also going to have the names of my images stored in my database, i.e. image1.jpg and image2.jpg in my database.

 

the image is in its own div tag set as the background image of the div tag if that makes any diference.

 

Thanks

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.