Questions tagged as 'php'

1
answer

Change img SRC with PHP

Well I have the img tag and when I click on a div with id="btnsiguiente" I change the path of img , doing this with javascript is easy if I create an array with the routes inside but if the routes of the I have images in a da...
asked by 19.01.2018 / 14:11
0
answers

Query to order data insertion [closed]

Greetings. When clicking on the + button in the second row of table 1, I get the result of table 2 (new row). I need that when I update the page, the data stays in the position where it was created or deleted. What kind of query would you need?...
asked by 29.11.2017 / 14:33
2
answers

How to name ALIAS SQL in PHP?

The problem lies with me when I want to call it by the name of "alias + column" from PHP. $sqlPersonaje = 'SELECT p.nombre, p.nivel, p.fuerza, p.destreza,...
asked by 29.11.2017 / 03:21
0
answers

I can not access my server centos from PhpDesigner, error in hot key verified !! how do I solve it?

Good morning, I have a problem wanting to connect to my server centos 6.9, to program use phpdesigner, the centos was changed to another server and now that I want to reconnect I can not connect since I get a host error key not verified, what...
asked by 08.02.2018 / 14:46
1
answer

Error 404 when accessing my virtual host

Good afternoon I am learning to use Laravel and for that I am doing a project, the problem is that when I try to access my virtual host it shows me a 404 error. I have the following routes in the routes / web.php file: Route::redirect('/',...
asked by 07.02.2018 / 20:26
0
answers

Error sending and saving AJAX and PHP image

In the script I have the camera on and then The Code that the image takes on a canvas. I see that it returns a base64 I remove ( data:image/jpeg;base64, ) that brings the text. I'm trying: Convert base64 into a file type image Sav...
asked by 14.12.2017 / 18:44
0
answers

does not store the variable $ _SESSION in php

   SESSION.php <?php session_start(); error_reporting(0); include('conexion.php'); $usuario = $_POST['usuario']; $clave = $_POST['clave']; $tabla = $_POST['tabla']; switch ($tabla) { case 'docentes': $getUsuario = mysqli_query($c...
asked by 14.12.2017 / 06:30
1
answer

Save a data of the global variable $ _SESSION in another variable

Good afternoon everyone. I have a question on how to obtain and save the values of $ _SESSION especially I just want an id that brings. I put these lines of code of how I see what you have: $userLog = $_SESSION['usuario']; dd($userLog); //Con...
asked by 18.12.2017 / 22:17
1
answer

Control the sessions in Laravel

I have detected several flaws in my laravel sessions and I do not sincerely like to solve them. When I log in and go to the Home. If I click on the back button of any browser, I go back to the Login screen. If I enter another incorrect passwo...
asked by 19.12.2017 / 11:48
1
answer

I get this: "Notice: Trying to get property of non-object in C: \ xampp \ htdocs \ 123 \ determ.php on line 192"

I made a login and everything worked perfectly but when I made the registration I missed that error here: if($contra==""){ //si que no existen ningun //contraseña mostramos el mensaje de error $this->Mensaje='<div class="alert alert-dang...
asked by 16.11.2017 / 05:33