ERRORES PHP CON MYSQL (CODIGO)
Publicado por David De León (1 intervención) el 15/12/2015 04:11:18
HOLA TENGO UN ERROR Y ME SALEN ALGUNOS WARNINGS YA USE mysqli_ Y NO HA CAMBIADO NADA +
Warning: mysqli_select_db() expects parameter 1 to be mysqli, string given in /home/u978004678/public_html/auto/validation.php on line 4
Warning: mysqli_query() expects parameter 1 to be mysqli, string given in /home/u978004678/public_html/auto/validation.php on line 7
Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, null given in /home/u978004678/public_html/auto/validation.php on line 8
No Existe Usuario
Warning: mysqli_select_db() expects parameter 1 to be mysqli, string given in /home/u978004678/public_html/auto/validation.php on line 4
Warning: mysqli_query() expects parameter 1 to be mysqli, string given in /home/u978004678/public_html/auto/validation.php on line 7
Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, null given in /home/u978004678/public_html/auto/validation.php on line 8
No Existe Usuario
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php
$enlace=mysql_connect("LOCALHOST","USUARIO","CONTRASEÑA");
mysql_select_db("DBNAME",$enlace);
$consulta="SELECT pass FROM usr WHERE usuario1='$_post[usuario]'";
$result=mysql_query($consulta,$enlace);
if ($reg=mysql_fetch_array($result))
{
echo $reg[pass];
}
else
{
echo "No Existe Usuario";
}
?>
Valora esta pregunta


0