File manager - Edit - /home/u608250662/domains/rdsolution.org.in/public_html/jevica/application/models/Projectss.php
Back
<?php class Projectss extends CI_Model { function selectallprojects() { $data= $this->db->get("wdi_projects"); return $data->result(); } function selectactiveprojects() { $this->db->where('status','1'); $data= $this->db->get("wdi_projects"); return $data->result(); } function selectactiveprojectslimits() { $this->db->limit(8); $this->db->order_by('id','desc'); $this->db->where('status','1'); $data= $this->db->get("wdi_projects"); return $data->result(); } function selectwebprojects() { $this->db->limit(8); $this->db->where('maincat','web-design'); $this->db->where('status','1'); $data= $this->db->get("wdi_projects"); return $data->result(); } function selectgraphicprojects() { $this->db->limit(8); $this->db->where('maincat','graphic-design'); $this->db->where('status','1'); $data= $this->db->get("wdi_projects"); return $data->result(); } function selectarchitectprojects() { $this->db->limit(8); $this->db->where('maincat','architect'); $this->db->where('status','1'); $data= $this->db->get("wdi_projects"); return $data->result(); } function selectvideoprojects() { $this->db->limit(8); $this->db->where('maincat','video-editing-projects'); $this->db->where('status','1'); $data= $this->db->get("wdi_projects"); return $data->result(); } function selectprojectsbymaincat($limit,$start,$maincat) { $this->db->limit($limit, $start); $this->db->where('status','1'); $this->db->order_by('id','desc'); $this->db->where('maincat',$maincat); $data= $this->db->get("wdi_projects"); return $data->result(); } public function get_count($id) { $this->db->where('status','1'); $this->db->order_by('id','desc'); $this->db->where('maincat',$id); $this->db->from('wdi_projects'); return $count = $this->db->count_all_results(); } function selectprojectsbysubcat($maincat) { $this->db->where('status','1'); $this->db->where('subcat',$maincat); $this->db->order_by('id','desc'); $data= $this->db->get("wdi_projects"); return $data->result(); } // function selectpojectbycat($id) // { // $this->db->where('parentcat', $id); // $data= $this->db->get('wdi_projectcat'); // return $data->result(); // } function selectbannerbyid($id) { $this->db->where('id', $id); $data= $this->db->get('wdi_projects'); return $data->result(); } function insert($data) { $result= $this->db->insert('wdi_projects', $data); return $result; } function update($id,$data) { $this->db->where('id', $id); return $this->db->update('wdi_projects',$data); } function delete($id) { $this->db->where('id', $id); return $this->db->delete('wdi_projects'); } } ?>
| ver. 1.4 |
Github
|
.
| PHP 8.0.30 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings