RE: Query Returning Error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxx] 
> 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@xxxxxxxxxxxxxx
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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux