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