Re: [PHP-WIN] Problem with php and MySQL: inserting strings into database

2010-04-23 Thread Toby Hart Dyke
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

RE: [PHP-WIN] Problem with php and MySQL: inserting strings into database

2010-04-22 Thread Warren Vail
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

[PHP-WIN] Problem with php and MySQL: inserting strings into database

2010-04-22 Thread Alexander Schunk
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']',