Questions tagged as 'php'

1
answer

how to make yii2 generate two buttons in a modal on the footer side?

I have a Modal that by clicking on delete, it shows a warning dialog box to eliminate, the problem is that I have a single button and I would like to add another one that says cancel, likewise I would like to add a color to the modal header, but...
asked by 12.10.2017 / 16:24
1
answer

Create PHP background process

I am setting up a Web application with Codeigniter in which a section must execute a process that takes a long time to finish, approximately 40 min. The process works fine, when executing it outside the application. However, when it was execu...
asked by 12.10.2017 / 14:48
1
answer

Replace one image with another PHP and MYSQLI

I have my code to edit images in my database, but when replacing the image in the folder or the path where it is saved does not replace them, but adds a new one. I leave image below: The image that is underlined in yellow is the one I w...
asked by 31.10.2017 / 21:07
1
answer

convert sql result into two-dimensional array in php

I want to put the results of an sql query in a two-dimensional array. The table would be something like id - > 1 name - > pepe last- > Garcia and other fields ... and I want you to put it in a two-dimensional array array [index] ['same...
asked by 01.11.2017 / 12:46
1
answer

DatatTables Laravel 5.4

I'm trying to make the Datatables plugin work according to Yajrabox but I can not get it to show anything, it just shows the table but without DataTable options. My code is: ProductosController.php use Yajra\Datatables\Datatab...
asked by 20.09.2017 / 08:25
2
answers

Can not declare class Model, because the name is already in use; PHP

I'm having this error, but it's not the case that the name is already used. In fact, it was working and continues to work correctly in other parts of the code. The class Model is an abstract class that connects to the database, the cla...
asked by 20.09.2017 / 23:14
1
answer

Edit parent element that has been clicked

Greetings, In this table I make a selection and in one of the "TD" I have made an INPUT to fill that space with the desired data, all with AJAX and working perfectly, but that I do an INSERT of the INPUT I keep coming out the INPUT box and I...
asked by 23.09.2017 / 15:52
2
answers

PHP doubt how to generate a counter in the name of a radio button

I have a panel survey manager where I add, edit and delete dimensions and questions of the survey, through this the survey that contains 4 dimensions, in a total of 21 questions and with a likert scale, is applied. My problem is based on plac...
asked by 07.09.2017 / 20:21
1
answer

Query is printed on a single td

I have a table which reflects a purchase made by a client or buyer, which has an identifier that would be the number of the order, it reflects that the customer requested, but it shows me in several tds the data of the order use a group by but i...
asked by 11.09.2017 / 01:19
1
answer

Help to build a mySql query with PHP

I've been trying to find the error of this PHP script for a week. What it does is to construct an 'INSERT' query taking into account the fields filled in by the user in a form. The error it throws is this:    Error at line: 470       Error m...
asked by 13.09.2017 / 10:12