Re: How to deal with identical fields in db

From: Date: Tue, 05 May 2009 20:46:05 +0000
Subject: Re: How to deal with identical fields in db
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-292311@lists.php.net to get a copy of this message
PJ wrote:
I'm coming up with a bit of a quandry: how to enter and retrieve an identical book title with different authors. It is rather unbelievable what contortions one finds as authors :-( like editors, associations and then the unknowns and anon y mouses. I suppose one has to get really creative... Anyone for tea? You should have a title_id field in your titles table, and this field should be unique. Probably auto assigned and auto increment.
If you search for a book title, and there are two books with that title, you should get two records back! Stephen

« previous php.general (#292311) next »