05-20-2007, 05:53 PM
|
#1 |
| | Validating Information before entering it into the database | | I am working on a Lyrics Database Script for vBulletin. What I would like to do is to check to make sure that an artist doesn't exist before entering it into the database. If the artist's name has not been added then it should proceed with the query. If the artist name already exists then it needs to give an error stating that.
Will I have to $db->query_read to get the artists and then check that the artist name the user has put into the artist name field does not exist? Is that the best way?
| |