hi guys as title suggests how can I input the current time into a mysql database?
This is what I have but it doesnt work
Probably is some stupid mistake. using the above code inputs 00:00 for each entry
Thnx in advance
This is what I have but it doesnt work
Code:
$sql="INSERT INTO $table_name (title, body, username, time_added)
VALUES
('$_POST[title]','$_POST[body]','$_SESSION[username]', 'now()')";
Probably is some stupid mistake. using the above code inputs 00:00 for each entry
Thnx in advance