On Tuesday 10 August 2004 22:54, Henri Marc wrote: > > 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 :-(
That's why view (HTML) source should be part of your debugging procedure. > Another problem still related to those images. You should always start a new thread when asking about something different. > 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) { Because you're assigning the value 1 to the variable $random. -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general ------------------------------------------ /* Small change can often be found under seat cushions. -- One of Lazarus Long's most penetrating insights */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php