RE: [PHP] Query Returning Error

From: Date: Wed, 13 Oct 2004 11:57:32 +0000
Subject: RE: [PHP] Query Returning Error
Groups: php.general 
Request: Send a blank email to php-general+get-199360@lists.php.net to get a copy of this message
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm > -----Original Message----- > From: Chris Dowell [mailto:php@nodalplane.com] > Sent: 13 October 2004 11:57 > > Note also that you didn't quote the index you were using inside the > $_POST array. This is wrong - it will work in "raw" PHP > because it will > be interpreted as an undefined constant, and thus replaced with the > string, however the behaviour inside a quoted string is even less > correct, and will almost certainly not do what you expect. Wrong -- the behaviour inside a quoted string is *more* correct, as it's a documented valid way to do it (whereas it's a documented way *not* to do it outside a string!). 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 (#199360) next »