Re: [PHP-DB] duplicated entry for key #

2001-12-18 Thread Russ Michell
> >'Duplicate entry 'username' for key 1. This means that you do have a duplicate entry in a row of your DB. Try setting a column as "Auto increment": ALTER TABLE id smallint(10) DEFAULT '0' NOT NULL auto_increment (or something like that) This means each set of data you put into the DB will

Re: [PHP-DB] duplicated entry for key #

2001-12-17 Thread Miles Thompson
This is custom error messaging. Julie Meloni has published a good tutorial on this, which you can find at http://www.thickbook.com. Have a look at that. What you do is seek into your users table before creating an insert. Your form, as its action, calls itself, so you are passing your variabl