Questions tagged as 'codeigniter'

2
answers

Bring data from the table with where in codeigniter

Hello friends, it turns out that I have this information in the table: and with CodeIgniter I need to bring all the data of id_servicio entered. the code I have is this: In the model: function getcoffeInfo ($id_servicio)...
asked by 16.01.2017 / 20:57
1
answer

Continue using data inserted into the codeigniter database

I tell you that I am working on CodeIgniter I am doing only one function, the first thing I do is insert: $data = array( 'id' => $this->input->post('id'), 'opcion' => $this->input->post('opcion'), ); I wonder how I g...
asked by 22.12.2016 / 21:55
2
answers

Problem with queries in related databases

Good morning I am trying to make a query in which one 3 tables and I want to be able to list the tasks assigned to a user with their corresponding Tag, but I duplicate the tasks that contain more than one Tag . The code is as follows: *...
asked by 16.03.2017 / 12:39
3
answers

I can not delete the index.php in the URL in CodeIgniter

Greetings I follow this course . Here they teach how to remove (or rather hide) the index.php in CodeIgniter URLs by configuring a .htaccess file in the root of the application, which did not work for me and I would like to know why....
asked by 30.08.2016 / 18:54
1
answer

Status of buttons with Codeigniter

I would like to know how in Codeigniter to change the state of the activate button that is green, that when it is deactivated it is red, but when I give it to activate this green one. Controller code: if ($activos =='true'){ $act...
asked by 03.01.2019 / 14:31
1
answer

Permission 777 to my uploaded files

I need to put a 777 permission to my uploaded files, but I can not find any document to upload files in codeigniter ... Is it possible to put the permission 777 with the load class of codeigniter ? Already use if(is_file($confi...
asked by 30.08.2018 / 15:34
1
answer

Does anyone know how to read an excel with PhpSpreadsheet in Codeigniter?

I am trying to read an excel file in codeigniter to save it in a database. I was looking for a php library to work with excel and found phpExcel but when I go to the site it tells me that it is deprecated and that it is now phpspreadsheet...
asked by 05.01.2018 / 14:38
1
answer

Perform a UNION with Codeigniter

Hi, how can I make a UNION in codeigniter, since I want my table to fit between my two tables. Something like that. [array] => Array ( [0] => stdClass Object ( //TABLA 1...
asked by 17.07.2018 / 16:36
1
answer

This query works well for me in mysql but I want to pass it to the CodeIgniter form, models

This query works well for me in mysql but I want to pass it to the CodeIgniter form, models, you can help me with this: SELECT registro.*,CONCAT(usuarios.apellidos,', ',usuarios.nombres) as appnom FROM (SELECT *, bingo+chancho+pollada as total...
asked by 18.07.2018 / 04:45
1
answer

does not accept images codeigniter

Why does not the image accept me? Code public function imagedata_post(){ if (!isset($_FILES['userfile']['name'])) { $this->response(array('message'=>'no image'),200); } else { $date = date("Y-m-d");...
asked by 05.06.2018 / 17:31