SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Sep 2006
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    help regard avoid duplicate ids

    --------------------------------------------------------------------------------

    Respected Sir/Madam,

    I have one html page asks userid and password with fields.When i click submit it checks from database and proceed.

    Main help is:
    If one user gets signin in one system,without signout,
    he cannot signin in another sysytem.
    but i have the problem to avoid duplicate userids.
    Whether i have to use hashmap or hashset?
    i do not have coding idea about hashset or hashmap,

    Thanks in advance

  2. #2
    SitePoint Evangelist borna's Avatar
    Join Date
    Jun 2006
    Location
    Iran, Tehran
    Posts
    475
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If one user gets signin in one system,without signout,
    he cannot signin in another sysytem.
    This is the part of your code, not the system process.

    but i have the problem to avoid duplicate userids.
    userid must be auto-increment. Set it at your db as increment and choose 1 as the amount of that.
    -1/2=999?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •