This usually means you forgot to close a bracket, in this case, you forgot to close the if: if(isset($userfinal)){
Just add another closure bracket where you need it (probably after the last closure bracket so:
</tr>
<?php
}
?>
</table>
<?php
} // Closure of the if
?>
2
solved Unexpected $end but I don’t know why PHP [closed]