/    Sign up×
Community /Pin to ProfileBookmark

ID in database

If I made a form, and wanting to insert some ones first name and last name.
Say these names are people who join the site or whatever, and I need to display them on hte site. When I add them, how will I create the ID? I would want each names to have a different id, and have them start from 1 and continue. Thank you in advance.

to post a comment
PHP

2 Comments(s)

Copy linkTweet thisAlerts:
@aj_nscNov 20.2006 — create a field userID, set it as primary key with auto_increment attribute
Copy linkTweet thisAlerts:
@PattonauthorNov 20.2006 — OK, thank you.
×

Success!

Help @Patton 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.9,
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,
)...