asmith Posted November 25, 2007 Share Posted November 25, 2007 how can i make it when the submitting a user to mysql , it put the time he has submitted in mysql fields , maybe timestamp type (i know i should search , but i really don't know what keywords to search! :-X) Link to comment https://forums.phpfreaks.com/topic/78807-solved-quick-time-question/ Share on other sites More sharing options...
trq Posted November 25, 2007 Share Posted November 25, 2007 Have a look at the date function. Link to comment https://forums.phpfreaks.com/topic/78807-solved-quick-time-question/#findComment-398818 Share on other sites More sharing options...
Wolphie Posted November 25, 2007 Share Posted November 25, 2007 You could just try date("m-d-Y"); Link to comment https://forums.phpfreaks.com/topic/78807-solved-quick-time-question/#findComment-398819 Share on other sites More sharing options...
Cagecrawler Posted November 25, 2007 Share Posted November 25, 2007 Use the MYSQL function NOW() to insert the current time. INSERT INTO table('foo','bar','time') VALUES('foo','bar',NOW()) Link to comment https://forums.phpfreaks.com/topic/78807-solved-quick-time-question/#findComment-398820 Share on other sites More sharing options...
asmith Posted November 25, 2007 Author Share Posted November 25, 2007 Use the MYSQL function NOW() to insert the current time. INSERT INTO table('foo','bar','time') VALUES('foo','bar',NOW()) hmm this one looks delicious ! thanks guys ! solved ! Link to comment https://forums.phpfreaks.com/topic/78807-solved-quick-time-question/#findComment-398821 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.