Date Format error

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

 



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')');
?></th>
          <th scope="row"><?php echo
$rsVJ->Fields('DATE_FORMAT(InitOn,'%m/%d/%Y')');
?></th>
          <th scope="row"><?php echo
$rsVJ->Fields('DATE_FORMAT(PostStart,'%m/%d/%Y')');
?></th>

Using this format /syntax
DATE_FORMAT(PostStart,'%m/%d/%Y')worked in a regular
database query.  Apparently not with echo.  I tried no
', also tried " around them, both produced nothing, no
error but no returned date.
Thank you 
Stuart

-- 
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