Welcome Guest, Not a member yet? Register   Sign In
Parse Error!
#1

[eluser]Peejk[/eluser]
Hello, I just started using CodeIgniter yesterday and I have watched the tutorials and I'm pretty sure I've got the coding right but I get a parse error when I upload..

Here's the error;
Parse error: syntax error, unexpected $end in /home/hmdwebde/public_html/blog/system/application/controllers/blog.php on line 39

Any help?

I've looked at my blog.php but it looks fine, heres my blog.php;
Code:
<?php

class Blog extends Controller {
    
    function Blog()
    {
        parent::Controlloer();
        
        $this->load->helper('url');
        $this->load->helper('form');
        
        $this->load->scaffolding('entries');
    }
    function index()
    {
        $data['title'] = "My Blog Title";
        $data['heading'] = "My Blog Heading";
        $data['query'] = $this->db->get('entries');
        
        $this->load->view('blog_view', $data);
    }

     function comments()
     {
        $data['title'] = "My Comment Title";
        $data['heading'] = "My Comment Heading";
        $this->db->where('entry_id', $this->uri->segment(3));
        $data['query'] = $this->db->get('comment');
        
        $this->load->view('comment_view', $data);  
     }
    
     function comment_insert()
     {
         $this->db->insert('comments', $_POST);
        
         redirect('blog/comments/'.$_POST['entry_id']);
}

?>

Are there any other files you need to see?

Thanks In Advance,
Hugo


Messages In This Thread
Parse Error! - by El Forum - 11-19-2009, 04:40 PM
Parse Error! - by El Forum - 11-19-2009, 05:23 PM
Parse Error! - by El Forum - 11-19-2009, 09:06 PM
Parse Error! - by El Forum - 11-20-2009, 06:33 PM
Parse Error! - by El Forum - 11-21-2009, 05:55 AM



Theme © iAndrew 2016 - Forum software by © MyBB