Questions tagged as 'php'

2
answers

Problem mysqli PHP: Access denied for user 'root' @ 'localhost' (using password: YES)

I'm having a problem when doing a test with a PHP code on my server. The code would be: <?php if(isset($_POST["id"]) && is_numeric($_POST["id"])) { $id=$_POST["id"]; } else { $id=1; } $mysqli = new mysqli('[IP de mi servidor]', 'ro...
asked by 05.03.2018 / 00:11
2
answers

error with MySQL: Invalid parameter number: number of bound variables does not match number of tokens

A few days ago I started working with the MySQL databases on my local server, for the moment it was going well until I added the user variable, I had only done it with email but with no user, now when I added that variable I miss the error of...
asked by 28.02.2018 / 00:45
2
answers

Why do I get ERR_TOO_MANY_REDIRECTS?

I was working with a web that I'm doing, it has a kind of login and this error appeared, I redirect them with header. This page does not work The mivhost.com page has redirected you too many times. Delete cookies ERR_TOO_MANY_REDIRECTS <...
asked by 23.08.2018 / 10:28
2
answers

Problems with routes in Laravel

I have a small problem with one of my routes ... I have my index which shows me several products (9 to be exact) when selecting one of my products therefore my route changes with the specification of my product example: "store \ donuts" in th...
asked by 23.08.2018 / 18:09
1
answer

Query runs twice

the following ajax function sends the parameters correctly: function concatenaredicion(idarchivoaeditar) { var contenidoagregar = CKEDITOR.instances['editor1'].getData(); data = { "texto":contenidoagregar, "idinform...
asked by 28.08.2018 / 23:25
2
answers

Problem with saving data in the database

For some reason it does not save it, the $ _POST receives it correctly, but in the save function where I execute the SQL it does not do not understand why the function is this function guardar_dominio($input, $conn) { if(isset($input['id'...
asked by 24.08.2018 / 16:21
2
answers

How to send emails from codeigniter with phpmailer? [closed]

Hello good morning you will see I am very new in this and recently I was entrusted with the task of sending emails. I have to create a form that allows me to take errands and then another that is to send notifications of the raids and I did it a...
asked by 14.03.2018 / 19:32
2
answers

Error in login form in PDO

I have this PHP to validate my username and password. The file answers me with "Ralizada Connection" and stays there. Can you tell me what I'm doing wrong? I use encrypted passwords. <?php try{ $conn = new PDO('mysql:host=.....
asked by 16.08.2018 / 16:15
1
answer

Sort by Mysql

Good day friends I have a doubt to the I do the following query As a result I get this Is there any way to bring the data in the order in which the query was made? That is first the data of Id 1, then those of 3, and finally those of...
asked by 20.12.2017 / 07:19
1
answer

Notice: Undefined index: Why does this error mark me?

I am generating a login log I am integrating session_start(); I have an inconvenience, it marks me an error which is the following: Notice: Undefined index: tiempo in C:\xampp\htdocs\revista\rev\administrador\consultar_registros.php on...
asked by 04.01.2018 / 19:31