RE: [PHP] mySQL time = year 2038 [SOLVED]

2002-07-01 Thread Shane
Yep, I was using the DATE() function in PHP to convert a TIMESTAMP from a MySQL DB query. I was getting a year of 2038 because MySQL and PHP use different TIMESTAMP formats. There are several FUNCTIONS that convert the two TIMESTAMPS from one to the other, (see comments in PHP manuals) but I

RE: [PHP] mySQL time = year 2038 [SOLVED]

2002-07-01 Thread David Freeman
Yep, I was using the DATE() function in PHP to convert a TIMESTAMP from a MySQL DB query. I was getting a year of 2038 because MySQL and PHP use different TIMESTAMP formats. $getmyTime = mysql_query(SELECT UNIX_TIMESTAMP(timestamp_col) AS yournamehere FROM myDBnamehere WHERE