Questions tagged as 'php'

1
answer

Sum of several variables in PHP?

It happens that I have this code armed in a Dreamwever platform, I need to find a way for all the data generated automatically by the "rand" command to be added in the "Totals" box, for both variables, both for x and for and. but I have no idea...
asked by 12.04.2018 / 03:03
4
answers

Problem with return in AJAX PHP

I have a problem using AJAX. I have created a function to call a function within a PHP class by means of AJAX and at the moment of calling the function, I return a response with a return. This is my AJAX function, where the php class ident...
asked by 07.05.2018 / 15:54
1
answer

Edit and delete mysql records from datatable

I have adapted an example of datatable with a datepicker. Now I want to add the functions to edit and delete records. I have another example with which I can edit and delete rows from the database, but I am not able to adapt it to make it work i...
asked by 22.04.2018 / 17:25
2
answers

PHP - Problems loading data in modal Bootstrap

I'm doing a CRUD, but in the updating part it's giving me war. I am using a modal, which is the following: <h5 class="modal-title" id="exampleModalLabel">Actualizar Información</h5> <button type="button" class="close" da...
asked by 23.04.2018 / 22:58
1
answer

prevent file upload if it already exists using class class.upload.php from verot.net

This fragment is the one that is used to make the action of the form, but I would like to know how to do to check if the same file already exists, that you get a warning that there is already a file with the same name. $handle = new upload($_F...
asked by 23.04.2018 / 16:53
1
answer

file_get_contents () permission denied failed to open stream

I have, if I'm right, 4 hours (and followed) looking around the Stackoverflow forum (so they do not tell me to take a look at the tour), as well as multiple threads in other forums such as DigitalOcean, the solution to the famous problem of perm...
asked by 22.04.2018 / 02:08
1
answer

Pass a variable to a view with laravel 5.6

Good evening I'm using laravel 5.6, and I have a doubt I want to pass a variable to my view in order to use it and help me define whether or not to insert a form in view in the controller I have the following code: public function listar($dato...
asked by 23.05.2018 / 23:22
1
answer

How to validate the duplication of records called from BD with PHP and Ajax

I have a table where the information I send from my BD is shown through a field called DN, the detail is that I need to validate that when calling twice or more the same DN does not appear on my information table if not once. listing.html...
asked by 25.05.2018 / 16:42
1
answer

Plugin for wordpress

I am trying to make a plugin for wordpress in which I show the client the account status of their clients. What I do is simple, a query to a database in which there is a list of clients and the status of them, whether they are active or not. &...
asked by 25.05.2018 / 02:57
2
answers

Error Notice: Array to string conversion in PHP PDO

Could someone help me and say why he sends me that message? Attach the code: <?php try{ $conexion = new PDO('mysql:host=localhost;dbname=organizer', 'root', ''); } catch(PDOexception $e){ echo 'Error ' . $e->getMessage(); }...
asked by 06.04.2018 / 00:00