Welcome Guest, Not a member yet? Register   Sign In
DB query caching and php 7.2
#7

(12-26-2017, 02:19 PM)skunkbad Wrote: Is it possible that your code is triggering this warning, and that the warning is only happening because you are doing something wrong?

this is an example for a code that will produce the error with PHP 7.2 and CodeIgniter 3.1.6

PHP Code:
        $start 0;
        $this->db->start_cache();
        $this->db->select('ID, Title, Name, address.city as City, address.state as state')
                 ->from('customers')
                 ->join('address''customers.ID = address.CusID')
                 ->order_by('ID''ASC');
        $this->db->stop_cache();
        $total $this->db->count_all_results();
        $ents $this->db->limit(25$start)
                         ->get()
                         ->result_array();
        $this->db->flush_cache(); 
Reply


Messages In This Thread
DB query caching and php 7.2 - by abonajd - 12-21-2017, 10:57 AM
RE: DB query caching and php 7.2 - by dave friend - 12-23-2017, 08:59 AM
RE: DB query caching and php 7.2 - by abonajd - 12-26-2017, 01:19 PM
RE: DB query caching and php 7.2 - by skunkbad - 12-26-2017, 02:19 PM
RE: DB query caching and php 7.2 - by abonajd - 12-26-2017, 03:55 PM
RE: DB query caching and php 7.2 - by skunkbad - 12-26-2017, 08:24 PM
RE: DB query caching and php 7.2 - by Narf - 01-02-2018, 09:18 AM
RE: DB query caching and php 7.2 - by abonajd - 12-27-2017, 08:48 AM
RE: DB query caching and php 7.2 - by InsiteFX - 12-28-2017, 05:12 AM
RE: DB query caching and php 7.2 - by abonajd - 12-28-2017, 07:24 AM



Theme © iAndrew 2016 - Forum software by © MyBB