Hi,
I am trying to access the MySQL function TO_DAYS() from PHP.
From MySQL I can type in: SELECT TO_DAYS('2000-1-1') AS bar;
and I get:
++
| bar|
++
| 730485 |
++
1 row in set (0.00 sec)
From PHP, I have tried:
$sql=SELECT TO_DAYS(2001-01-01) AS bar;
Message-
// From: Garry Optland [mailto:[EMAIL PROTECTED]]
// Sent: Friday, 1 February 2002 2:12 PM
// To: [EMAIL PROTECTED]
// Subject: [PHP-DB] More Date operations.
//
//
// Hi,
//
// I am trying to access the MySQL function TO_DAYS() from PHP.
//
// From MySQL I can type in: SELECT TO_DAYS