Questions tagged as 'codeigniter'

1
answer

Foreach inside foreach is duplicating PHP values? [closed]

I'm having a problem with looping , I'm working with 3 Bank tables, it would be Anuncio , Opcoes_Anuncio ( interleave) and Opcoes , I'm trying to get data from options together with the selected options, but it happens t...
asked by 15.05.2018 / 23:31
1
answer

Display ajax data returned by controller in view

Hello, I'm having difficulty displaying the data returned by the controller via ajax call My js is this: var requestList = $.ajax({ type:'GET', data:null, url:"index.php/Pages/loadComentarios" }); requestList.done(function(e)...
asked by 10.04.2018 / 05:43
1
answer

How do I write the following SQL code in the Codeigniter Model?

select count(situacao) as Qtde, sum(valorcausa) as Total_Valor_Causa from processo where situacao = "Tramitando";     
asked by 23.04.2018 / 22:58
1
answer

Get INT as INT and not as string - Codeigniter - Ajax

I have the following tabela , controller and model , I want to get what is int as int , not string . Note that when the item is retrieved, the int field is enclosed in quotation marks. How do I rec...
asked by 19.12.2017 / 19:08
1
answer

Presentation of data in the view with CodeIgniter

I'm trying to display the data coming from my database in View. I followed the various tutorials I found on the internet but none of them could answer me: /. Model public function get_titles() { $title = $this->db->get('TB_TITLE...
asked by 22.01.2018 / 18:55
1
answer

Return result_array codeigniter

Having the following table: tbl_attending_events 'id' INT(11) NOT NULL AUTO_INCREMENT, 'descricao' VARCHAR(255) NULL DEFAULT NULL, 'evento_id' INT(11) NOT NULL, 'devedor_id' INT(11) NOT NULL, 'negociacao_id' INT(11) NOT NULL, 'asse...
asked by 30.11.2017 / 12:53
2
answers

Set up style sheet with PHP

I am setting up an administrative system and one of the administrator options is to control various page color settings. But I'm having a hard time figuring out the best way to put these settings on the site. I thought about creating a style...
asked by 03.02.2018 / 21:12
2
answers

Problems downloading in CodeIgniter 3

In the view I created this link: <td> <?php echo anchor("./anexos/cartao-confirmacao.pdf", "<i class='glyphicon glyphicon-arrow-down'></i>", ['class' => 'btn btn-primary btn-block',...
asked by 25.10.2017 / 19:53
1
answer

How to resolve error ORA-01795 (maximum number of expressions) in Codeigniter

I am developing a report in Codeigniter, however my select contains a filter that can have more than 1000 expressions in my where_in and then it returns me the error: ORA-01795: o número máximo de expressões em uma lista é de 1000. I...
asked by 25.10.2017 / 12:09
1
answer

Generate background report in php

In the system I am developing, it has come in the most critical part of reporting. I want to generate a report that when prompted by the client, it reports a message saying that as soon as the report is ready an email will be forwarded. I alr...
asked by 08.11.2017 / 13:20