Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: CI_Validation has a deprecated constructor
Post: RE: CI_Validation has a deprecated constructor

well the system/libraries/validation.php is most definitely a codeigniter file but it might be a remnant of an old CI version. find the first few lines down below. /** * CodeIgniter * * An...
5,297 Views
4 Replies
03-19-2017, 01:12 AM
cperrot
    Thread: CI_Validation has a deprecated constructor
Post: CI_Validation has a deprecated constructor

Which version of CI will be ready for PHP7.x? I am currently running 3.1.3 and some web-hoster just won't let you use error_reporting = ~E_DEPRECATED & ~E_NOTICE & E_ALL to be able to get rid of t...
5,297 Views
4 Replies
03-17-2017, 11:53 PM
cperrot
    Thread: sql is not compiled properly
Post: RE: sql is not compiled properly

I tested this in CI 3.1.2 and this problem seems to have vanished and is solved now.
23,301 Views
0 Replies
11-02-2016, 11:39 AM
cperrot
    Thread: sql is not compiled properly
Post: RE: sql is not compiled properly

and the solution to the problem with PHP Code: -- $this->db->select_sum('amount * quantity', 'amount'); -- is change DB_query_builder.php in function from this PHP Code: -- protected fu...
23,301 Views
0 Replies
04-18-2015, 06:56 AM
cperrot
    Thread: sql is not compiled properly
Post: RE: sql is not compiled properly

another error I found. sending in this code results in PHP Code: -- $this->db->select_sum('amount * quantity', 'amount'); -- results as Code: -- SUM(`amount *` `quantity`) AS `amount` -- ...
23,301 Views
0 Replies
04-18-2015, 06:09 AM
cperrot
    Thread: sql is not compiled properly
Post: RE: sql is not compiled properly

After some digging I found the problem. It is a bug. The function select tokenizes all variables based on comma delimiter PHP Code: -- public function select($select = '*', $escape = NULL) { ...
23,301 Views
0 Replies
04-18-2015, 12:19 AM
cperrot
    Thread: sql is not compiled properly
Post: RE: sql is not compiled properly

this is another one where Round is not properly compile either SELECT `bamboo_invoices`.*, `bamboo_clients`.`name`, `bamboo_clients`.`address1`, `bamboo_clients`.`address2`, `bamboo_clients`.`city`...
5,905 Views
0 Replies
03-26-2015, 04:55 AM
cperrot
    Thread: sql is not compiled properly
Post: sql is not compiled properly

Hi I reported the same issue already in CI 2.x see http://forum.codeigniter.com/thread-646.html The problem persists in CI 3.x however slightly differently instead of escaping with an ` the tab...
5,905 Views
0 Replies
03-26-2015, 04:25 AM
cperrot
    Thread: sql is not compiled properly
Post: RE: sql is not compiled properly

I am still waiting from someone at Codeigniter to acknowledge that this is a bug. cperrot Wrote: (01-08-2015, 12:52 AM) -- SELECT `name`, `bamboo_invoices`.`currency_symbol`, SUM(`amount` * qu...
23,301 Views
0 Replies
01-08-2015, 12:53 AM
cperrot
    Thread: sql is not compiled properly
Post: RE: sql is not compiled properly

SELECT `name`, `bamboo_invoices`.`currency_symbol`, SUM(`amount` * quantity) AS amount, SUM( ROUND((bamboo_invoice_items.amount*bamboo_invoices.tax1_rate/100 * bamboo_invoice_items.quantity) / 0.05, 0...
23,301 Views
0 Replies
01-08-2015, 12:52 AM
cperrot
    Thread: sql is not compiled properly
Post: RE: sql is not compiled properly

the sql works. there are 7 opening and 7 closing parentheses. I upgraded from 1.7.x to 2.2 and realised that the sql which used to work suddenly doesn't in CI 2.2. If I remove the ,0 the sql is co...
23,301 Views
0 Replies
12-31-2014, 11:30 PM
cperrot
    Thread: sql is not compiled properly
Post: sql is not compiled properly

following sql is not properly compiled. PHP Code: --                $itemsPfx = $this->db->dbprefix('invoice_items');        $invPfx = $this->db->dbprefix('invoices');        $this->db->sele...
23,301 Views
0 Replies
12-31-2014, 08:51 AM
cperrot

Theme © iAndrew 2016 - Forum software by © MyBB