Questions tagged as 'php'

1
answer

Print PHP variables in different places in html

I'm validating an html form with php and ajax. When there is an error, such as blank spaces, ajax prints the value of the variables that show those error messages. The problem is that currently all the variables are printed in a single string...
asked by 24.07.2017 / 16:43
3
answers

create a login system with php

I need to do a PHP login system, I found a page where there is a guide. This works well but I do not know if it is the most correct and safe way to create the login. link: PHP login creation guide database CREATE TABLE 'usuarios' (...
asked by 25.07.2017 / 01:47
1
answer

update select field using ajax

I'm starting to use codeigniter, javascript with the jquery library and I have the following problem, I have a form and in the select field where I load the cities I send the data from my controller in json, from the sgt form. function L...
asked by 12.05.2017 / 19:16
1
answer

Why when I upload my page made with php I get an error in linux and in windows if it loads correctly?

I have a problem, and I have not found the solution. What happens is that I charge my project in xamp, htdocs, in windows and I open the page and all without any inconvenience. But when doing the same in linux I see this error on the web. War...
asked by 13.05.2017 / 04:47
2
answers

Can you use array_unique exceeding a value of the array?

There is a possibility that array_unique take the elements you want from an array, for example, we have an array with keys and names, and we want to eliminate duplicate names by ignoring keys that may be different. I know there is no...
asked by 17.05.2017 / 10:37
1
answer

Problems creating a table with FPDF

I want to create a table like this with FPDF, and that more tables are added like these according to the data that a query returns. Even so, having a table template helps me This is the table: The html code in the table is as follows...
asked by 18.05.2017 / 10:32
2
answers

PHP Xpath string to XML

I'm assailed by a doubt. I know that I can transform a string like: <nodo1><nodo_1_hijo></nodo_1_hijo></nodo> A xml with SimpleXMLElement. But will it be possible to transform an xpath to xml like the following?:...
asked by 18.05.2017 / 23:18
1
answer

customize welcome email sent from php

Good morning, I can not find a way to personalize a welcome message that is sent after registering on the web. I see that it does not pay attention to HTML tags either. I'm using: $destinatario = $mail; $contenido = "<br>Bienvenido...
asked by 21.05.2017 / 21:34
1
answer

Visit counter resets itself

Good morning, I use a very simple way to count the number of visits I have to different news. Every time you make a request to the news in MySQL I add a visit, and update the entry in the database. $statement = $conexion->prepare("SELECT...
asked by 22.05.2017 / 14:25
2
answers

$ _SESSION recover data

Good, I have an archiv that retrieves the IDs and makes a login for roles so that: VALIDAR.PHP <?php //Fichero que usara para mandar los datos recibidos más abajo para pasarlos por el controlador. include "../controlador/usuariosControla...
asked by 22.05.2017 / 11:08