> I was able to locate the error, but not to fix it. The code : > > $timestamp = date('YmdGis',(mktime (0,0,0,date("m") > ,date("d")-1,date("Y") ) ) ); > > produces a string like this: 2002090500000 > > There is one 0 missing. Because of this my querry is not working, How > come this timestamp is wrong?
It's not wrong...read the manual ;-)) Y = Year, 4 digits m = month, 2 digits d = day, 2 digits G = 24 hour, from "0" to "23" H = 24 hour, 2 digits i = minutes, 2 digits s = seconds, 2 digits You have to use YmdHis instead! HTH Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php