Questions tagged as 'codeigniter-3'

1
answer

How to decrypt data from an array codeigniter3

It happens that it encrypts some records with the 'encryption' library before saving them, until there, all good. I do the query and all the data is encrypted. What I want is to remove the encryption in the controller, before putting them...
asked by 12.04.2018 / 21:09
2
answers

Codeigniter3 - Get data from a controller by sending an id with ajax

I have been reviewing the site and I have not been able to find an answer to my question. I'm trying from a select with a list of products that I have in a view that when I select one I get updated the existence data of that product that I get f...
asked by 22.03.2018 / 19:54
1
answer

CodeIgniter how to make the autoincrementable id re-insert from 1

Hi, I am working with CodeIgniter and in an operation it happens that all the contents of a table must be deleted, and then insert the new records. All this happens without problems, but I need that when inserting new records the autoincremen...
asked by 02.01.2018 / 02:00
1
answer

Select max ID in PHP

I am doing a simulation of a codeigniter system which works with MVC. I'm trying to pass the last ID of my "users" table to a field called "user_id " from my table "clients" (Since they are related to an FK) and everything so that from a...
asked by 06.12.2017 / 00:43
1
answer

Select DISTINCT in codeigniter 3

Hello, could you help me to make this query with codeigniter and access the result that you throw: $consulta = $this->db->query("SELECT DISTINCT documentos.titulo_principal, documentos.descripcion, autores.nombre, areas.nombre...
asked by 03.09.2017 / 06:56
2
answers

Configure .htaccess in Codeigniter CentOS 7 Server?

Cordial Greeting. Recently I'm working with the Codeigniter framework and a small web app, I use CentOS 7 to mount the application. The problem is that I use the CodeIgniter URL helper to remove the index.php from the URL de http://midomini...
asked by 05.07.2017 / 16:45
2
answers

Codeigniter transactions with multiple functions

I need to add a product in the "products" table, once the product has been added, return the product ID, then I need to add the details of that product in the "details_product" table In the official page of Codeigniter they show how to do it...
asked by 21.06.2017 / 15:05
1
answer

I mark an error in my visa, it says that the variable row is not defined, this error marks me when I do not have data in the database

foreach($data['prestamos'] as $row): /*inicia inspeccionar abonos*/ $prestamos = $this->prestamosModel->getAbonosPrestamoInicio($row->pr_id_prestamo ); $suma_prestamos = 0.00; if($prestam...
asked by 10.08.2017 / 23:16
1
answer

Get list of elements filtered by id

For example, I have two tables with relation 1_n (Intervals have one to many deliveries) but I am not able to list the deliveries related to the specific user id filtering in the controller with the where clause. I try the following but it does...
asked by 08.05.2017 / 11:41
1
answer

Download image from the name saved in the Codeigniter ajax database?

Currently with a plugin upload the image to my server, with this plugin (Dropzone.js) carturo the path of this file. I do all this to avoid having to upload the tax file to the database and I only keep the name. Example upload file capture...
asked by 17.04.2017 / 06:13