Questions tagged as 'codeigniter'

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
1
answer

Compare values of two PHP Codeigniter array

I am working with php and codeigniter , and I need to compare two array of type $array1 = ['1','2','3',]. and regardless of the size of both know the values that are not present in both array , for example $arr...
asked by 25.06.2017 / 21:38
1
answer

Upload an image by Ajax and CI

I want to know if my JQuery is well declared or set. In the capture part I capture it for the .val() nose if it will be bad or good, because at the time of recording it says that no image has been selected MTML: <d...
asked by 21.06.2017 / 00:06
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
2
answers

Error: "You have an error in your SQL syntax"

The error that returns to me is: A Database Error Occurred Error Number: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '0) VALUES ('admin@hotmail...
asked by 04.06.2017 / 03:29
2
answers

Save all items from the cart

I am looking for help for this problem that I have when I save my items that I add to the shopping cart, if I add several to the cart, it only saves me one and the price and the quantity keeps the total of everything I can do. I kept all the ids...
asked by 09.06.2017 / 21:51
1
answer

problem with my browser mozilla firefox, I can not take "time" or "date", implement javascript to correct this problem

I need to put the time in an input, as I get some arrows in the input to add the time, but in mozilla does not appear, how can I implement this with javascript so that I can use mozilla, this is my code. <?php $actual=strftime( "%Y-%m-%d",...
asked by 01.06.2017 / 18: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

Upload an image in PHP framework CodeIgniter

I can not upload the image and I do not receive the name to save it in the Database , I got the following error:    "You did not select a file to upload" Controller: $config['upload_path'] = base_url()."assets/img/uploads/";...
asked by 15.05.2017 / 17:32
1
answer

CodeIgniter - Array to String conversion error

I am creating a function to obtain interpreter data based on the interpreter ID. This is the function that I created: interprete_model.php Models public function interpreteID($id) { //consultar los datos $this->db-&g...
asked by 05.05.2017 / 15:32