The issue is simple, in the code
change
$tgTable=new TableGear(array("database"=>array("username"=>"root",
"password"=>"",
"database"=>"teacher_assign",
"table"=>"course"),
"editable"=>"all",
"sortable"=>"all"));
to
$tgTable=new TableGear(array("database"=>array("username"=>"root",
"password"=>"",
"name"=>"teacher_assign",
"table"=>"course"),
"editable"=>"all",
"sortable"=>"all"));
The change was database was changed to name. Andrew can you please
change this in your examples too, please.
Regards
Girish R