Re: showing an image with php

From: Date: Fri, 11 Mar 2005 17:26:56 +0000
Subject: Re: showing an image with php
Groups: php.general 
Request: Send a blank email to php-general+get-210520@lists.php.net to get a copy of this message
> I want to asssign an image to a variable and show it if certain conditions > are met. E.g > > > If condition is met > > { > $myimage= retrieve image (images/myimage.jpg) > echo $myimage > } > > Have not used image creation before with php just dipping my toe in the > water. Not sure you need to use image creation now. All you seem to really want to do is display an <IMG tag, or not, based on the if. if (...){ echo "<img src=images/myimage.jpg>"; } -- Like Music? http://l-i-e.com/artists.htm

« previous php.general (#210520) next »