Re: showing an image with php

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux