Primary keys

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Paul

    Primary keys

    How is it that even though I have the column "username" in my database set
    as a Primary key, using my PHP script to add new users to the database works
    without any errors even when signing up using an existing username. I have a
    database full of the same usernames!


  • Jeff North

    #2
    Re: Primary keys

    On Sun, 17 Aug 2003 15:39:13 +0000 (UTC), in mailing.databas e.mysql
    "Paul" <Paul@here.co m> wrote:
    [color=blue]
    >| How is it that even though I have the column "username" in my database set
    >| as a Primary key, using my PHP script to add new users to the database works
    >| without any errors even when signing up using an existing username. I have a
    >| database full of the same usernames![/color]

    Is there more than one field as the primary key?

    ---------------------------------------------------------------
    jnorth@yourpant sbigpond.net.au : Remove your pants to reply
    ---------------------------------------------------------------

    Comment

    Working...