Saving timestamp in mysql table using php -
i have field in mysql table has timestamp data type. saving data table. when pass timestamp (1299762201428) record, automatically saves value 0000-00-00 00:00:00 table.
how can store timestamp in mysql table?
here insert statement:
insert table_name (id,d_id,l_id,connection,s_time,upload_items_count,download_items_count,t_time,status) values (1,5,9,'2',1299762201428,5,10,20,'1'), (2,5,9,'2',1299762201428,5,10,20,'1')
pass this
date('y-m-d h:i:s','1299762201428')
Comments
Post a Comment