Page 1 of 1

insert data into $db

Posted: Wed Sep 08, 2004 2:59 pm
by Think Pink
hy all
i have a table with id, name, pass, ip, date (timestamp)
if I enter some values through a form all is ok. If i want to insert the same values, again through the same form nothing happends. Why can't I insert duplicate values?
The mysql command is a simple Insert statement without any verification if some of the data allready exists.

Posted: Wed Sep 08, 2004 3:14 pm
by AVATAr
maybe you cant insert duplicates..

show us your code.. and your table definition.. and what data are you inserting twice.

insert data into $db

Posted: Wed Sep 08, 2004 3:26 pm
by Think Pink
the problem was username, wich was the unique key.
is working now
thx