@ -64,6 +65,8 @@ if ($_REQUEST['oper'] == 'del') {
$obj->delete($_REQUEST['id']);
}
//4. Querying the DB for the elements
$columns = array();
switch ($action) {
@ -81,12 +84,25 @@ switch ($action) {
}
$result = Database::select('p.id,p.name, p.description, c.name as career', "$obj->table p LEFT JOIN ".Database::get_main_table(TABLE_CAREER)." c ON c.id = p.career_id ", array('order' =>"$sidx $sord", 'LIMIT'=> "$start , $limit"));