[SOLVED] insert data into $db

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Think Pink
Forum Contributor
Posts: 106
Joined: Mon Aug 02, 2004 3:29 pm

insert data into $db

Post 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.
User avatar
AVATAr
Forum Regular
Posts: 524
Joined: Tue Jul 16, 2002 4:19 pm
Location: Uruguay -- Montevideo
Contact:

Post by AVATAr »

maybe you cant insert duplicates..

show us your code.. and your table definition.. and what data are you inserting twice.
User avatar
Think Pink
Forum Contributor
Posts: 106
Joined: Mon Aug 02, 2004 3:29 pm

insert data into $db

Post by Think Pink »

the problem was username, wich was the unique key.
is working now
thx
Post Reply