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
https://forums.phpfreaks.com/topic/216907-images-databases-and-php/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.