Parse error: syntax error, unexpected 'mysql_query' (T_STRING) in

后端 未结 2 1345
我在风中等你
我在风中等你 2021-01-29 09:41

I am new in php i am getting this error while updating one of the column of the table

    if(isset($_POST[\'approved\'])) {
    $change=\"SELECT * FROM `workpla         


        
相关标签:
2条回答
  • 2021-01-29 10:16

    It is really hard to find these types of errors in code but this error only occurs when you miss some type of symbol in code.

    I also stuck in that error

    Parse error: syntax error, unexpected 'sorry' (T_STRING) and removing this by just addining " into my code

    before adding (") this

     $sql = "select * from user_profiles where email = '$email';
    

    afetr adding (")

    $sql = "select * from user_profiles where email = '$email'";
    
    0 讨论(0)
  • 2021-01-29 10:18

    You're missing a semi-colon:

    $dep=$infoChange['division name'] <--HERE
    
    0 讨论(0)
提交回复
热议问题