Someone
public php v1 · immutable$sql = "INSERT INTO person (person_name) VALUES ('$postPersonName')";$result = mysql_query($sql) OR die ("The query:<br>" . $sql . "<br>Caused the following error:<br>" . mysql_errno());if(mysql_errno()==1062){ $msg = "Sorry ".stripslashes($postPersonName)." is a dulicate"; }$msg = "Succesfully added ".stripslashes($postPersonName)." to the person listings";