RE: Date Format 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



On 25 November 2004 18:39, Stuart Felenstein wrote:

> I'm getting a:
> Parse error: parse error, unexpected '%' in
> /home/mysite/public_html/userpage.php on line 120
> 
>  <th scope="row"><?php echo
> $rsVJ->Fields('DATE_FORMAT(LstUpdate,'%m/%d/%Y')');

Attempting to use unescaped single quotes within a single-quoted string --
not a good idea.  Either double quote the entire DATE_FORMAT() string, or
escape the embedded single quotes.

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