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) Quote 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. Quote 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"); Quote 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()) Quote 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 ! Quote Link to comment https://forums.phpfreaks.com/topic/78807-solved-quick-time-question/#findComment-398821 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.