Im new to the board and wanted to see if you all could help me out.
Im currently trying to display an image using the explode(); function.
I looked at tutorials online and tried to search the forum but im not finding
anything. A snippet of code is attatched to this can anybody tell me what im doing
Thanks in advance
My string to be exploded was like this "http://www.anyurl.com/img.png|altTag"
I had the code as this before and it didnt give me errors, but did not show the content.
$img = explode(“|”,$SpecialOffers);
$imgUrl = $img;
$imgAlt = $img;
Looks like you have correctly created your $img variable, you just need to echo it to output it.
Found my problem, I forgot to echo out my php, Can’t believe i forgot tht lol… although errors like that are usually the simplest to take care of.
Thanks again guys
You must be logged in to reply to this topic.