Jump to content

Recommended Posts

what i want to achieve is that when people sign up i want to have the date entered into my database

 

so far all i done is create a regdate feild to the database the "type" i used is "date"

 

not sure what the code would be, please help or direct me to a tutorial that explains how and what to do

 

pinkangel_@hotmail.co.uk

 

Link to comment
https://forums.phpfreaks.com/topic/140156-registration-date-added-to-registering/
Share on other sites

thx for your replys guys i ended up using this

 

// Get the current date
 $regdate=date("Y-m-d");
// And then this to store the information in the database
 $query = "insert into user (regdate) values (''$regdate')";

 

 

this works, just wanted to check with you guys if there was a reason why this was incorect or any reason why i shouldnt do it this way

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.