require_once replaces html

Asked

Viewed 37 times

0

I have a view with require_once for a controller, but using require_once my html code just disappears. Follow the code prints:

inserir a descrição da imagem aqui

Controller

  • 1

    If possible, take the code, and post here, it’s easier to help

  • You missed closing parentheses and the semicolon after $_PC. Also your script tags need to be closed with </script>. Another consideration is that I found it strange that you call a line and then pass a resultset, even not knowing what your code does, the normal is that you iterate a resultset in a loop reading line by line. I suggest you turn on the PHP error view or set your development server to always display errors.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.