Apart from Warren's excellent advice, the source of your problem is
things like this:
'$_POST['vorname']'
How is PHP supposed to know that this is nested parentheses? You should
have done it like this:
"$_POST['vorname']"
Though of course, follow Warren's advice, and don't do it like this a
nt that your code was
supposed to do.
My 2 cents,
Warren Vail
Vail Systems Technology
-Original Message-
From: Alexander Schunk [mailto:asch...@gmail.com]
Sent: Thursday, April 22, 2010 10:34 PM
To: php-windows@lists.php.net
Subject: [PHP-WIN] Problem with php and MySQL: inserting st
Hello,
i have a problem with php and mysql when inserting strings into a database.
I have the following syntax:
$sqlinsert = "INSERT INTO werte ('benutzername', 'passwort', 'name',
'vorname', 'Geburtsdatum', 'strasse', 'plz', 'ort', 'email')
VALUES('$_POST['benutzername']', '$_POST['passwort']',