Putting Time and Date Into Mysql
Posted: Mon Oct 28, 2002 6:42 pm
ok, i cant figure out how to put the time and date into MySQL Using the DATETIME function in MySQL.
$log_names = "insert into sn values ('$name', 'tov')";
$query = mysql_query($log_names);
tov in my data base is where the DATETIME goes. But when it logs the time and date all it logs is 0000-00-00 00:00:00
ANyone know what i should do... Let me remind you that me = noob at PHP and MySQL... lol... i cant be great at it at only 16 and trying to learn on my own.. oh well.. later.
$log_names = "insert into sn values ('$name', 'tov')";
$query = mysql_query($log_names);
tov in my data base is where the DATETIME goes. But when it logs the time and date all it logs is 0000-00-00 00:00:00
ANyone know what i should do... Let me remind you that me = noob at PHP and MySQL... lol... i cant be great at it at only 16 and trying to learn on my own.. oh well.. later.