[PHP & MySQL] Php - Problem. Formular

nymphy
So.. ich habe mal wieder nen Problem -.-

Der Code der flasch is... ein wenig hab ich schon verbessert..

<?php
include('connect.inc.php');
$name = $_POST['name'];
$mail = $_POST['mail'];
$datum = time();
$anmeldedatum = date("d.m.y",$datum);
$aktivitaet = $pic;
$pic = "a1";
$home = $_POST['home'];
if( ($name=='') OR ($mail=='')) {
echo "<b>Error</b><br>\nBitte fülle die Felder Name und E-Mail aus!<br><br>\nBitte <a href=\"java script:%20history.back(-2)\" target=\"_self\">Zurück</a>";
} else {
$eintrag = "INSERT INTO `vollmember` ( `id` , `name` , `email`, `hp`, `anmeldedatum`, `aktivitaet`)
VALUES ('', '$name', '$mail', '$home', '$anmeldedatum', '$aktivitaet');
$eintragen = mysql_query($eintrag);
if($eintragen==true) { echo " Du wurdest eingetragen!";
} else { echo " Es lag ein Fehler vor.";
include('formular.php');
}
}
?>

Die Fehlermeldung :
Parse error: syntax error, unexpected T_STRING in /usr/export/www/vhosts/funnetwork/hosting/vrhallertal/welcome/formular_send
.php on line 16

Hoffe jemand ist schlauer als ich und kann mir helfen ^^
.Maybe
Was ist denn daran line 16?
Und benutz doch bitte diesen Button für PHP-Codes:
VRH Pferde
$eintrag = "INSERT INTO `vollmember` ( `id` , `name` , `email`, `hp`, `anmeldedatum`, `aktivitaet`)
VALUES ('', '$name', '$mail', '$home', '$anmeldedatum', '$aktivitaet')";
.Maybe
Na dann...
schau mal hier http://schattenbaum.net/php/insert2.php
und machs genau nach dem da angegeben Schema, würde ich mal sagen...
Stelo
Zitat:
Original von VRH Pferde
$eintrag = "INSERT INTO `vollmember` ( `id` , `name` , `email`, `hp`, `anmeldedatum`, `aktivitaet`)
VALUES ('', '$name', '$mail', '$home', '$anmeldedatum', '$aktivitaet')";


Genau, und das "id" kannnst du eigtl. auch weglassen, wenn du die auf "auto_increment" hast! ^^
nymphy
fröhlich danke euch