Monday 29 October 2018

php - parse error syntax error, unexpected T_STRING, expecting ',' or ';'




I am getting the syntax error commented code. Can some have idea, why this error comes



Error: syntax error, unexpected T_STRING, expecting ',' or ';'



echo '';

Answer



you need to use the single quotes and single & like :



'.$row['case_id'].'&msg=added"


No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...