php parse/syntax error help

前端 未结 4 1215
陌清茗
陌清茗 2021-01-23 14:02

I keep getting a

 \"Parse error: syntax error, unexpected \':\', expecting \')\' in /home/jobkill/public_html/process.php on line 8\"

when proc

4条回答
  •  余生分开走
    2021-01-23 14:37

    Update:

    Checked your code and was able to reproduce your error. You're not using double quotes but some other obscure quotes that is not supported by PHP.

    Proper double quotes are literally ". You can learn about the details in the PHP manual.

    You probably made an error while copy and pasting code from somewhere else in the internet that was changing code's quote's on the fly for styling and display reason.

    Take care. The other problems in your code still stand (see other answers as well).


    Try

    echo "";
    

    instead of the similar but different line in your screenshot (it's no text, so I can't quote it and highlight the places you made errors in there, so sorry 'bout that).

    This does not create the syntax error you're asking about however.

提交回复
热议问题