hi, im new at php and mysql stuff
i have a question regarding php and mysql database
how do i insert a record in the database with a same name but different id?
for example, a name "john" with an id of "123" and the other name also "john" but the id is "456". the id are different but the name is the same.
can anyone help me please..
thanks in advance!
Saving record with a same name but different id in php mysql
3 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Satyapriya NayakRank #47 · 31.5K reputationPosted May 14, 2013, 9:55 AM EDT
franco5 reputationPosted May 15, 2013, 7:05 AM EDT
thanks again
Shashank SrivastavaRank #1,097 · 1.7K reputationPosted Jun 26, 2013, 4:53 AM EDT
I am not sure what makes it so difficult to insert duplicate entries. Make sure the 'name' column is not set to 'unique' or 'primary'.
If problem persists, would like to have a look on the code.