Questions tagged as 'php'

3
answers

Open php document on localhost from Sublime Text

I have a problem, I have never used Sublime Text and I would like that when editing a php file, pressing for example the f12 key from sublime opened in localhost (Chrome). But I can not do it. I have the active wanpserver and the direction of...
asked by 11.05.2017 / 00:59
1
answer

JSON equivalence

Good, what would a JSON like this be like but decoded from PHP? JSON { "lists": [ { "title": "do", "defaultStyle": "list-danger", "items": [ { "title": "beforeItemDelete is never calle...
asked by 09.05.2017 / 11:18
1
answer

How to go through PDO query in PHP

I have an application where I need to obtain the values of a query made: I tried this way and if it worked (with mysqli): //para conectarse a la Base de Datos $host = '127.0.0.1'; $user = 'root'; $pass = ''; $db = 'incidencias'; $cone...
asked by 08.05.2017 / 03:05
1
answer

How to control special characters when uploading a map?

Can you control that when uploading a flat file, if one of the rows has characters such as: !@#$%&/(/() , the system will perform some validation? I am trying to update a record and I need to do the aforementioned validation. I was...
asked by 09.05.2017 / 16:55
2
answers

Query in MySQL from PHP

I am adding a record in MySQL from PHP , but I get the following error message.    "Notice: Undefined index: id in ..." "Notice: Undefined index: name   in ... "" Notice: Undefined index: sex in ... " This is the code snippet. $identi...
asked by 07.05.2017 / 01:31
1
answer

Returns me undefined

Good, I have a form that through AJAX and PHP I make a query to my BD to return some of the data, the problem is that it returns undefined when I try to paint in query a data of the JSON array, I have looked at the debug of the browser and in PH...
asked by 05.05.2017 / 07:27
2
answers

Passing data from a table to a php form

Good, I want to pass the data that appears in my table to a form on another page, how do I do it with only php? The code I have is: <?php include('conexion.php'); include('busqueda.php'); $busqueda = $_GET['buscar']; $query = "select * fr...
asked by 25.04.2017 / 14:56
2
answers

hosting and accents [duplicated]

Good morning everyone! I'm using Hostinger as host, and I do not put it to publicize it, but because the technical service is not able to tell me why despite having the code that I will put below the accents and special characters if they are...
asked by 20.04.2017 / 21:53
1
answer

Identify the form from which it is derived

On my website I have two sections: compras and ventas Each with a different layout . In each one the user can consult his personal data and modify them, the case is that when he is showing the same information I would be i...
asked by 11.04.2017 / 14:53
2
answers

How to encrypt passwor with 'crypt ()' from php for login system?

I have an encryption with crypt in the following way. $password = filter_input(INPUT_POST,'pwd'); function saltAleatoria() { $caracteres = "abcdefghijklmnopqrstvwxyz0123456789"; $salt = "";...
asked by 10.04.2017 / 15:35