bryanptcs Posted December 19, 2006 Share Posted December 19, 2006 I am wanting a timestamp to be placed into my db when the form is submitted, below is my php code for trying to do this:[code]$timestamp = date('Y d m h:i:s');echo $timestamp; $sql = "insert into upload SET id='$id' , business='$business', address='$address', city='$city', contact='$contact', salesrep='$salesrep', phone='$phone', email='$email', name='$fileName', time='$timestamp' ";[/code] Quote Link to comment Share on other sites More sharing options...
artacus Posted December 19, 2006 Share Posted December 19, 2006 So what is your question? Quote Link to comment Share on other sites More sharing options...
fenway Posted December 19, 2006 Share Posted December 19, 2006 Better to use time=NOW()..... and why are you setting the id? Quote Link to comment 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.