On 10 August 2004 15:55, Henri Marc wrote:
> 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) {
You mean == (comparison) not = (assignment).
Cheers!
Mike
---------------------------------------------------------------------
Mike Ford, Electronic Information Services Adviser,
Learning Support Services, Learning & Information Services,
JG125, James Graham Building, Leeds Metropolitan University,
Headingley Campus, LEEDS, LS6 3QS, United Kingdom
Email: [EMAIL PROTECTED]
Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php