Mine
public text v1 · immutable//Check if Artist is Unique, If not - submit record.
$query = "SELECT * FROM artist WHERE artist_name LIKE '%$artist%'";
$result = mysql_query($query) or die(mysql_error());
if(!mysql_result($result,0)){
$query = "INSERT INTO artist (artist_id, artist_name) VALUES ('','$artist')";
mysql_query($query);
} // IF