Wednesday, 14 March 2018

php - Unexpected character in input: ''' (ASCII=39)

i have following code:



header( 'Content-type: text/xml' );

mysql_connect( 'domain', 'user', 'password' );
mysql_select_db( 'database' );

mysql_query(" INSERT INTO user(userName,password,email)
VALUES(

'".$_POST['username']."',
'".md5($pass)."',
'".$_POST['email']."',
)" );

?>


When i try to load this in url:



http://xcode.domain.de/add.php?userName=test&password=test



I got this error on my server:



Warning: Unexpected character in input: ''' (ASCII=39) state=1 in /kunden//webseiten/xcode/add.php on line 15




Parse error: syntax error, unexpected '"' in /kunden/webseiten/xcode/add.php on line 15



can Somebody help on this?



thank you

No comments:

Post a Comment

casting - Why wasn't Tobey Maguire in The Amazing Spider-Man? - Movies & TV

In the Spider-Man franchise, Tobey Maguire is an outstanding performer as a Spider-Man and also reprised his role in the sequels Spider-Man...