Jump to content


Photo

ID's assigned to DB info


  • Please log in to reply
2 replies to this topic

#1 Immortal55

Immortal55
  • Members
  • PipPipPip
  • Advanced Member
  • 59 posts

Posted 16 March 2006 - 03:32 AM

How do i assign ID's to my database input, for instance if somebody fills in a field with something, and that is recorded to the DB how do I assign an ID to the entry (ie 1, 2, 3 4, ...)?

#2 Gaia

Gaia
  • Members
  • PipPipPip
  • Advanced Member
  • 95 posts
  • LocationCanada

Posted 16 March 2006 - 04:16 PM

You would have to make a row in your MySQL table called ID ( doesn't have to be ID, but something similiar ) and choose the option auto increment. It will then automtically increment that field when you insert information.

#3 Immortal55

Immortal55
  • Members
  • PipPipPip
  • Advanced Member
  • 59 posts

Posted 17 March 2006 - 12:10 AM

Ah, wow thanks a lot.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users