On 20 Feb 2008 in macromedia.dreamweaver.appdev, WPW07 wrote:
> I think I may have resolved the problem. I needed to use
> DATE_FORMAT in the Select Statement above the table:
>
> $query = "SELECT name, DATE_FORMAT(date_received,
'%m/%d/%y') AS
> date....
>
> Then in the table, use
>
> <td align="left">' . $row['date'] . '</td>
Yes, except pick some word other than 'date':
$query = "SELECT name, DATE_FORMAT(date_received, '%m/%d/%y')
AS
myDate....
'date' is frequently a keyword - it is in MySQL, and, without
looking,
probably in PHP too. Many apps don't like if you use keyword
for
something other than their intended use.
--
Joe Makowiec
http://makowiec.net/
Email:
http://makowiec.net/contact.php