/    Sign up×
Community /Pin to ProfileBookmark

Automaticaly inserting date

Hi, i have just created a new field in my database called date. When a user submits a join form i want the date/time to be automatically inserted into the date field in the database.

I already have the value NO automatically inserted into the valid field in my database when a user submits a join form, so i just need to add the data/time function under this

[code=php]$valid = ‘NO’;[/code]

Can someone please show me how to do this, thanks

to post a comment
PHP

4 Comments(s)

Copy linkTweet thisAlerts:
@oo7mlauthorMay 25.2007 — anyone...
Copy linkTweet thisAlerts:
@bokehMay 25.2007 — Why not have a DATETIME column with a default set to NOW().
Copy linkTweet thisAlerts:
@oo7mlauthorMay 25.2007 — Wow, that would be cool, how would i do that, thanks
×

Success!

Help @oo7ml spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.19,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...