All pastes #399946 Raw Edit

Someone

public php v1 · immutable
·published 2007-03-18 11:11 UTC
rendered paste body
$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";