I am new to grocery crud and it looks like it is perfect for what I want to do. I have a mysql DB with one table that has about 8 fields. I have edited the config.php file for the baseurl, i have edited the database.php file for the connection to the DB. I created a new controller file called Main.php with the following:
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Examples extends CI_Controller {
function __construct() {
parent::__construct();
/* Standard Codeigniter Libraries */
$this->load->database();
$this->load->helper('url');
$this->load->library('grocery_CRUD');
}
function my_boss_is_in_a_hurry() {
$crud = new grocery_CRUD();
$crud->set_table('info');
$crud->columns('id,'dealerid','dealername','contact','phone','email','level','credit');
$output = $crud->render();
$this->output($output);
}
}
When I access the Main.php I get this error:
A PHP Error was encounteredSeverity: Parsing Error
Message: syntax error, unexpected 'dealerid' (T_STRING)
Filename: controllers/Main.php
Line Number: 20
Backtrace:
I don't understand what I have wrong. Help please
