abhishekphp6 Posted October 29, 2009 Share Posted October 29, 2009 Hello, I declared a variable like $password=”Pass@wordX”; I get an error on this line Parse error: syntax error, unexpected '@' in /var/www/mysql_up.php on line 7 I tried using escape sequence by $password=”Pass\@wordX”; but then I get the error Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /var/www/mysql_up.php on line 7 Parse error: syntax error, unexpected '@' in /var/www/mysql_up.php Can you please help. I am not able to assign a string which contains the character @ in it. Link to comment https://forums.phpfreaks.com/topic/179518-parse-error-syntax-error-unexpected-in-varwwwmysql_upphp-on-line-7/ Share on other sites More sharing options...
jonsjava Posted October 29, 2009 Share Posted October 29, 2009 check the line above it for the error. Link to comment https://forums.phpfreaks.com/topic/179518-parse-error-syntax-error-unexpected-in-varwwwmysql_upphp-on-line-7/#findComment-947264 Share on other sites More sharing options...
Mchl Posted October 29, 2009 Share Posted October 29, 2009 ” is not " Link to comment https://forums.phpfreaks.com/topic/179518-parse-error-syntax-error-unexpected-in-varwwwmysql_upphp-on-line-7/#findComment-947265 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.