Parse error: syntax error, unexpected ‘<‘, expecting T_STRING or T_VARIABLE or ‘{‘ or ‘$’
I am getting the above error in Code Igniter coding, mainly in line 2:
$this->load->model('helloworld_model');
$data['result'] = $this->helloworld_model-><span class="sql"> getData </span>();
$data['page_title'] = "CI Hello World App!";
$this->load->view('helloworld_view',$data);
Please help me to fix this.
Instead of
try
Looks like some HTML made it into your PHP, probably while you copied and pasted it.
I assume you put the
**in there to mark the line this is about. If not, remove them as well.