Questions tagged as 'php'

1
answer

Use min () and max () of an array with php

The following example saves me in the variable $ min the smallest number in the list that is in the array $array = array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10); $min=min($array); echo"$min"; My question: What I need is for me to look for the...
asked by 09.09.2018 / 23:36
1
answer

Error stack trace in MVC

I use model view controller (MVC) and I have this error in the route sheet (routes.php): Fatal error: Uncaught Error: Class 'ArticuloController' not found in C: \ xampp \ htdocs \ gestionweb \ routes.php: 37 Stack trace: # 0 C: \ xampp \ htd...
asked by 08.09.2018 / 20:11
1
answer

As insert records every certain date with php mysql

It turns out that I have an app for preventive maintenance. My problem is this: In the "orders" table, the orders of each "resource" or team are loaded. But preventive maintenance is done every so often, so when loading a Preventive work orde...
asked by 08.09.2018 / 05:50
1
answer

Error when opening a Project in laravel

I'm new to laravel, I have a problem. I have a project that was passed to me from a PC and I am using it in mine. I already install the composer and install laravel, when I try to open it by php artisan serve in the direction of my project in ht...
asked by 08.09.2018 / 03:14
1
answer

Error registering new user - PHP

When sending the data, it always shows me the following error message, personalized:    An error has occurred internally, please, try again to send your request later I have no more details to attach, it does not show me any other error....
asked by 28.08.2018 / 08:50
1
answer

Save image generated with textPainter in PHP

Hello good afternoon I am trying to save an image that I generated with PHP using the class textPainter but the following function does not work for me: imagepng( $img, 'test/imagen.png' ); This is my code, I hope you can give me...
asked by 27.08.2018 / 00:19
2
answers

How to avoid blank records to the db, in the filters the empty field is valid .. but still commands them

<?php $errores = ''; $enviado = ''; if (isset($_POST['submit'])) { $nombre = strtoupper($_POST['nombre']); $apellidopaterno = strtoupper($_POST['apellidopaterno']); $apellidomaterno = strtoupper($_POST['apellidomaterno']);...
asked by 26.08.2018 / 16:11
1
answer

"parsererror" SyntaxError: Unexpected token in JSON at position 0?

I do not stop getting this same error, I have researched about it and it seems that I am sending as html ... something? The concept does not finish to me to be clear in the other answers that have been with the same problem &...
asked by 27.08.2018 / 17:08
1
answer

error in datatable laravel actions

I am making a table with actions of habilitar and deshabilitar when clicking on the buttons the url sends me with its respective id but the function does not call me in the controller. Route::get('/admin/votos/all/{id}/deshabilia...
asked by 23.10.2018 / 17:18
1
answer

Take the ID of a record in a PHP table with JS

Cordial Greeting. I need your collaboration. I have a php table: with BD records <td id="<?php echo $row['Solc_idx']; ?>"><input type="button" class="btn btn-primary" value="Procesar"></td> The case is that th...
asked by 09.11.2018 / 17:22