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