Jump to content

Adding date and time to mysql datetime type


aram

Recommended Posts

Hi i want to add date and time to mysql datetime type and i have added this code but its adds (0000-00-00 00:00:00)

$time= date('H:i:s');	$date= date("m.d.y");	$current= $date ." ". $time;$sql="UPDATE table SET current='$current'";

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...