$date=date('Y-j-m H:i:s ',ftp_mdtm($ftp,filename)) mysql_query("INSERT INTO `` (`modifieddate`) VALUES ('".$date."')"); i have used above code, my datatype in database is currently timestamp. i hav also used datetime but still the value in database of date shows 0000-00-00 00:00:00 i am not getting whys tht happening please helpp
First, I think correct format for mysql datetime is "Y-m-d H:i:s". Second, your table name is missing. Try something like this: $date = date('Y-m-d H:i:s',ftp_mdtm($ftp,filename)); mysql_query("INSERT INTO `table_name` (`modifieddate`) VALUES ('".$date."')"); PHP:
how to fetch a data from a field from mysql table in php i have taken result of select querry in $result variable wht to do next