RE: [PHP] Re: Image and variable

From: Date: Tue, 10 Aug 2004 15:03:02 +0000
Subject: RE: [PHP] Re: Image and variable
Groups: php.general 
Request: Send a blank email to php-general+get-193284@lists.php.net to get a copy of this message
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: m.ford@leedsmet.ac.uk Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211

« previous php.general (#193284) next »