Jump to content

Insert Image


mstevens

Recommended Posts

Ok, so I have a variable named $zodiac that is running through an array, based on the year chosen, and selecting the appropriate animal!

 

I also have an Images folder containing a pic of each of the zodiac animals.

 

I want to insert the images based on the $zodiac array animal chosen, so as an example...

<?php

echo '<img src="Images\" . $zodiac . ".jpg">';

?>

Please help.

 

Link to comment
https://forums.phpfreaks.com/topic/291902-insert-image/
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.