Public feed #723548

Jemand

public text v1 · immutable
Raw Edit
·published 2007-10-02 21:19 UTC
rendered paste body

require ("config.inc.php");

mysql_query("INSERT INTO
			$dbtab(vorname,nachname,punkte)
			VALUES
			(
			'" . mysql_real_escape_string($_POST[fvorname]) . "',
			'" . mysql_real_escape_string($_POST[fnachname]) . "',
			'" . mysql_real_escape_string($_POST[fpunkte]) . "'
			)");

$pruf = mysql_affected_rows();

// Datensatz angelegt (Ja/Nein)
if ($pruf > 0) {
	echo 'eintrag=1';
} else {
	echo 'eintrag=0';
}

mysql_close($db);


}
?>