Error PHP Parse error: syntax error, unexpected '-' (T_OBJECT_OPERATOR), expecting end of file in

0

I'm working on php, I'm a novice in this and I get the following error

  

"PHP Parse error: syntax error, unexpected '- >' (T_OBJECT_OPERATOR), expecting end of file in "

What is this due to and how can I solve it?

 <?php
        include ("conexion.php");
        $query="SELECT * FROM encargado";
        $resultado= $conexion -> query($query);
        while($row=$resultado -> fetch_assoc()) {
          ?>           
       <?php
    
asked by Erick Muñoz 14.12.2017 в 18:13
source

0 answers