All pastes #399945 Raw Edit

Anonymous

public text 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";