PHP - unexpected end of file

后端 未结 3 820
自闭症患者
自闭症患者 2021-01-29 14:41

I added the error reporting...still doesn\'t show up what the problem was. This is the code in my index.php

As you can see, I added some sort of alert if the user_ok ret

相关标签:
3条回答
  • 2021-01-29 15:26

    Change

    <? endif; ?>

    to

    <?php endif; ?>

    0 讨论(0)
  • 2021-01-29 15:29

    Since you've opened your control structure using the traditional <?php ?> open-close tag, you'll need to close your conditional with th PHP tags:

    <?php endif; ?>
    

    Note that, per the documentation:

    Mixing syntaxes in the same control block is not supported.

    Also, note that the use of the <? ?> short tags is only enabled if short_open_tag is set equal to TRUE in your php.ini.

    0 讨论(0)
  • 2021-01-29 15:35

    see the

    <? endif; ?>
    

    it should be

    <?php endif; ?>
    
    0 讨论(0)
提交回复
热议问题