Questions tagged as 'php'

1
answer

Create automatic images and save it in Javascript or other

I wanted to know if there is any way to create automatic images in any language, either php or javascript, (or also css). The truth does not know what it would be. Explanation: Have a template of the background image, and inside that backgrou...
asked by 24.07.2018 / 23:29
1
answer

ERROR CONNECTING TO BD PHP 7

I'm trying to generate a JSON file, but I'm getting ERROR 2, when I try to connect to the BD, my hosting uses PHP7, I do not know if that is influencing the error, before it worked correctly. ERROR:    Opps some thing went ERROR 2 PHP...
asked by 25.07.2018 / 07:14
1
answer

Problem when paging data from a DateRangePicker

I have a daterangepicker: $( function() { $( 'input[name="datefilter"]').daterangepicker({ changeMonth: true, autoUpdateInput: false, showButtonPanel: true, dateFormat: 'mm/dd/yyyy', numberOfMonths: 2, regional: 'es',...
asked by 16.08.2018 / 16:42
1
answer

Consultation in field of the same Laravel table 5.5

I'm working the Laravel 5.5. I have a table called servers, in this table I insert both physical and virtual servers, and identify them through the following field. {!! Form::mySelect('id_uso', 'Uso', [0 => 'Escoge una opción'] + App\Uso...
asked by 16.08.2018 / 16:51
1
answer

Datetimepicker javascript

I have this datepicker, in which I show the blocked dates according to the condition that they are accepted or not, I try to filter now by a new parameter, area_id. If the area_id of the data is equal to the user's, the dates must be shown in or...
asked by 04.09.2018 / 11:39
2
answers

Receive a response in php and define it in android studio

I am creating a registration and login system, but I want to check if there is already a user with that name, for this, I am checking it with this: SELECT COUNT(*) FROM login WHERE username = '$username' , so if the answer is 1, do not al...
asked by 03.09.2018 / 10:36
3
answers

How to calculate column total and show it in table

Hello, I need your help ... I need to take the total for each column and show it below the data table.  As well as this image .. <?php if(isset($_POST['search'])) { $valueToSearch = $_POST['valueToSearch']; $valueT...
asked by 05.09.2018 / 09:30
2
answers

Can you EMPTY a table (truncate) every X Minutes?

I have a little doubt, in which I have not found much information. Could something be done, for each "5 minutes" (for example) to empty all the contents of a table? The truth is that I have been investigating, and I have not found any usef...
asked by 04.09.2018 / 22:26
1
answer

How to update records in a database after making the query?

I am doing the data update of a record in my database but before I need to obtain the data of that record in its fields respective this is my database. Field type key default servicio_No int(11) PRI NULL ti...
asked by 16.07.2018 / 17:53
2
answers

Run script generated with PHP after loading AJAX

I have put the following javascript test code but it does not run after loading the page with AJAX. <script> alert('hi'); </script> My AJAX code (in functions.js): function mostrarAJAX(enlace, elem) { $.ajax ({...
asked by 06.08.2018 / 14:03