GUIR
03-13-2008, 05:09 AM
Hello,
I inserted a date into mysql database Date type field as string in dd/mm/yyyy format.
example:
...
$arrival = '10/03/2008';
...
...
But when I query database records I get inserted date items as 0000-00-00.
I tried to solve this using many functions, but didn't work (strtotime, getdate, mktime, etc)
Could someone please let me know how to navigate between dates of PHP & MySQL.
I want to keep MySQL data type as Date because I need to query between dates later. Accordingly I will need date conversion extensively between PHP to MySQL and vice versa.
Thanks & Best Regards
I inserted a date into mysql database Date type field as string in dd/mm/yyyy format.
example:
...
$arrival = '10/03/2008';
...
...
But when I query database records I get inserted date items as 0000-00-00.
I tried to solve this using many functions, but didn't work (strtotime, getdate, mktime, etc)
Could someone please let me know how to navigate between dates of PHP & MySQL.
I want to keep MySQL data type as Date because I need to query between dates later. Accordingly I will need date conversion extensively between PHP to MySQL and vice versa.
Thanks & Best Regards