I want to show table order where status = 'confirmed'
, but my code doesn't work:
public function getdataorderconfirmed($limit, $offset){
if($offset == '') {
$sql = $this->db->query**("SELECT * FROM orderan where status = 'confirmed' LIMIT '.$limit.'
OFFSET 0 ");**
return $sql->result();
}
else{
**$sql = $this->db->query("SELECT * FROM orderan where status = 'confirmed' LIMIT '.$limit.'
OFFSET '.$offset.'");**
return $sql->result();
}
}