if (ereg("^[[:blank:]]*$",$img_url)) {
    // $img_url is blank


Julio Nobrega.

Um dia eu chego lá:

Ajudei? Salvei? Que tal um presentinho?

"Robert McPeak" <[EMAIL PROTECTED]> wrote in message
> if $img_url has a value, then I'd like to show the image, if it doesn't,
> then I'd like to show a message.  What's wrong with my code?  Am I
> incorrectly testing for the value?  The else works fine, but not the if.
>  Thanks!
> if (!$img_url)
> {
> echo "<b>No Image URL Entered"</b><br>";
> }
> else
> {
> echo "<img src=\"$img_url\">";
> }

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

Reply via email to