User Login
Latest Technology Articles
- PCinvent Studio Programming Solutions
- Fedora Core 12 YumEx Problem
- VMware Guest Wide Screen Resolution Problem
- DD-WRT Router Firmware
- OpenVPN AS Client Installation Problem Fix
- Redhat Yum problem
- File Server Solution
- Old C++ Project of ATM Machine
- My Research and Project of the Reversed Array List (Reversed Index Array List)
- My Research of Linear Data Structure
| date() of returning 12-31-1969 |
|
|
| Friday, 24 July 2009 | |
|
If your PHP call of MySQL table returnning 12-31-1969, don't even think you got the SQL correct and table selected,but just there is something wrong with PHP code you wrote. In most case, it is that you echo the table without selecting it in your SQL.
You have whole bounch of select query, but look at it, you don't even have something called "a.last_post" or "b.last_post" for this Left Join SQL.This is a very common mistake that one will make. And PHP date() function doesn't return Null or False value really gonna confuse us and assume there is no problem in the SQL. So if you insert Select last_post, the problem will be fixed immediately. Comments (1)
![]() written by ajaxer, July 29, 2009
oh thanks a lot. made the exactly same mistake..
Write comment
Tags: Technology Programming date() of returning 12-31-1969 PHP Date function Date Function 12-31-1969 |
|
| Last Updated ( Thursday, 30 July 2009 ) |
| < Prev | Next > |
|---|






