Jump to content

php/mysql if statement image help


piro

Recommended Posts

hi all

 

I have a database that returns a number with <?php echo $i; ?>

 

what i would like to do, is take that number and show an image instead

 

example.

 

if $i == 1 then show image.png

if $i == 2 then show image.png

etc etc

 

i have looked around but i dont see anything that matches, or even anything that is close.

 

 

thanks

 

piro

Link to comment
https://forums.phpfreaks.com/topic/139886-phpmysql-if-statement-image-help/
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.