Parse error: Syntax error, unexpected end of file in my PHP code

后端 未结 16 1679
孤城傲影
孤城傲影 2020-11-22 05:27

I got an error:

Parse error: syntax error, unexpected end of file in the line

With this code:


    

        
16条回答
  •  礼貌的吻别
    2020-11-22 05:47

    I saw some errors, which I've fixed below.

    This is what I got as being erroneous:

    if (login())
    {?>
    

    Welcome Administrator

    Upload Files
    Edit Points Tally

    This is how I would have done it:

    
        some code
     0)
        {
            return true;
        }
        else
        {
            return false;
        }
    }
    if (login())
    {
    echo '

    Welcome Administrator

    Upload Files
    Edit Points Tally'; } else { echo "Incorrect login details. Please login"; } ?> some more html code

提交回复
热议问题