It looks like you're new here. If you want to get involved, click one of these buttons!
SELECT recent_project.project_id, recent_project.details, recent_project_images.image, recent_project.slug, recent_project.published
FROM (recent_project, recent_project)
JOIN recent_project_images
ON recent_project_images.project_id = recent_project.project_id
ORDER BY project_id asc
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
require_once(FUEL_PATH.'models/base_module_model.php');
class RecentProjects_model extends Base_module_model {
//public $required = array('title');
function __construct()
{
parent::__construct('recent_project');
}
// method used to list the data in the admin panel
function list_items($limit = NULL, $offset = NULL, $col = 'project_id', $order = 'asc')
{
// the data to list
$this->db->select('recent_project.project_id, recent_project.details, recent_project_images.image, recent_project.slug, recent_project.published', FALSE);
$this->db->from('recent_project');
$this->db->join('recent_project_images', 'recent_project_images.project_id = recent_project.project_id');
$data = parent::list_items($limit, $offset, $col, $order);
return $data;
}
Comments
A PHP Error was encountered
Severity: Notice
Message: Undefined index: id
Filename: controllers/module.php(293) : runtime-created function
Line Number: 19