Hello,

> Variables in single-quoted strings are not
> evaluated. Either user double
> quotes or concatination:
Thank you very much all for your help, specially Kevin
Waterson for his complete program.
It was simple, I always make some mistakes with those
quotes :-(

Another problem still related to those images.

I have done that just as a test. Its' very simple but
I really don't know why, the result is always the same
picture.

<?php
$random=MT_RAND(1,2);
echo "$random<br>";
if ($random=1) {
$image='pic.gif';
}
if ($random=2) {
$image='pic2.gif';
}
echo $image;
echo "<img src='$image'>";
?>

Before I used 'if... else' but it wasn't working so I
made a test with a second 'if'.
I print the result of the variable to be sure that the
number is really different, but anyway the picture is
always the same.

Why, why, why?


        

        
                
Vous manquez d’espace pour stocker vos mails ? 
Yahoo! Mail vous offre GRATUITEMENT 100 Mo !
Créez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/

Le nouveau Yahoo! Messenger est arrivé ! Découvrez toutes les nouveautés pour 
dialoguer instantanément avec vos amis. A télécharger gratuitement sur 
http://fr.messenger.yahoo.com

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

Reply via email to