Welcome Guest, Not a member yet? Register   Sign In
YEAR in active record
#1

(This post was last modified: 09-25-2018, 05:27 AM by pippuccio76.)

HI , i have a table :

 `id` bigint(20) UNSIGNED NOT NULL,
  `data` date NOT NULL,
  `numero_settimana` int(11) NOT NULL,
  `giorno_settimanale` varchar(15) NOT NULL,
  `orari_apertura_id` int(11) NOT NULL,
  `stato_agenda_id` int(10) UNSIGNED NOT NULL COMMENT '= aperto chiuso o prenotato',
  `clienti_id` int(10) UNSIGNED DEFAULT NULL,
  `note` varchar(100) DEFAULT NULL

This is a part my function :

PHP Code:
getweek($numsettimana,$data,$tabella){

 
       $this->db->where('numero_settimana'$numsettimana);
 
       $this->db->where('giorno_settimanale''Domenica');
 
       
        $query
=$this->db->get($tabella);
 
       

But it get the row  of every years , how can i get only by year of var $data ($data have yyyy-mm-dd format) ?
Reply


Messages In This Thread
YEAR in active record - by pippuccio76 - 09-25-2018, 05:23 AM
RE: YEAR in active record - by InsiteFX - 09-25-2018, 08:39 AM
RE: YEAR in active record - by davicotico - 09-25-2018, 09:37 AM
RE: YEAR in active record - by Gurutechnolabs - 10-01-2018, 03:13 AM



Theme © iAndrew 2016 - Forum software by © MyBB