Questions tagged as 'php'

1
answer

Get select value and use it in the same php file

Hello good morning I have this code is to fill a select with php and mysql but with the value obtained I must make another query to fill the other select depending on the selection of the first, I need to do it in the same file to fill other inp...
asked by 24.04.2018 / 15:33
0
answers

Consult registration within a foreach

I am listing the records from MySQL, there I consult three tables, users, registers, courses, the table that I show is currently with the users' registers, but with the id of the user I should consult in the table records by the id of the user t...
asked by 24.04.2018 / 05:36
2
answers

Error counting list with PHP count

I have this function that brings me the tickets associated with a user_department of the user that enters the system function listTicketUnrevisedSupervisor($conexion, $id){ $consulta = mysqli_query($conexion, "SELECT *, t.id as id_ti...
asked by 24.04.2018 / 13:55
0
answers

PHP Change Database in Foreach with button ...?

Code: foreach ($conexion->query("SELECT * FROM asegurados.asegurados LIMIT 0,1000") as $row){ <td> <input type="submit" name="submit<?php echo $row[Id] ?>" value="Guardar" onclick = "<?php $query = "UPDATE asegurados....
asked by 12.05.2018 / 01:49
1
answer

Undefined method 'getArticles'. The method name must start with either findBy or findOneBy!

In my Symfony 3 project I deleted the Entity folder, inside a Bundle, but when I generate the same entities from the same database I get this error:    Undefined method 'getArticles'. The method name must start with either findBy or findOneBy...
asked by 13.05.2018 / 18:30
0
answers

How to update the variables of $ _SESSION

When something is changed in the database, I want it to change also on the web I try to use a function () example: function actualizar_datos(){ //Contenido para actualizar las variables de $_SESSION[''] $_SESSION['nombre'] = $VARIBLE_...
asked by 25.04.2018 / 04:06
1
answer

Problem when going back when logging in (Laravel 5.2 php)

I have created a login in Laravel 5.2 but it has a problem when logging in. It redirects me to the admin panel (until then it is ok) but when you press the back arrow of the browser I get the full email field (eg: henry @ gmail.com and the empty...
asked by 25.04.2018 / 02:10
0
answers

Credential problem when sending email

I have 2 servers, one from work and another from personnel. On my personal server, with this code I send an email without problems but in the work server it needs to be complemented with certain credentials. How can I add to the Mail SMTP creden...
asked by 25.04.2018 / 11:29
2
answers

change the value of an option within an array

It happens that I have a array with the following data: $sistemas2 = array('BILLETERO', 'VIDEO', 'CONTROL DE ACCESO', 'CONTROL DE ACCESO VIDEO', 'ALARMA', 'ALARMA VIDEO'); And I go through it in a select to generate a <opti...
asked by 20.04.2018 / 16:13
0
answers

Error: TokenMismatchException in VerifyCsrfToken.php line 67:

I'm trying to upload videos using laravel and I'm releasing that error, even putting the {!! csrf_field() !!} and {{ csrf_token() }} keeps throwing me the error, also deactivates in the kernel the \App\Http\Middleware\VerifyCsrf...
asked by 21.04.2018 / 00:21