Fatal error: Uncaught Error: Call to undefined function mysquli_query()
Publicado por rodrigo (4 intervenciones) el 19/03/2020 02:35:07
hola quiero hacer un login pero no se por que me salen estos errores
( ! ) Fatal error: Uncaught Error: Call to undefined function mysquli_query() in C:\wamp64\www\rodrigo\conectar2.php on line 12
( ! ) Error: Call to undefined function mysquli_query() in C:\wamp64\www\rodrigo\conectar2.php on line 12
Notice: Undefined variable: email in C:\wamp64\www\rodrigo\conectar2.php on line 11
( ! ) Fatal error: Uncaught Error: Call to undefined function mysquli_query() in C:\wamp64\www\rodrigo\conectar2.php on line 12
( ! ) Error: Call to undefined function mysquli_query() in C:\wamp64\www\rodrigo\conectar2.php on line 12
Notice: Undefined variable: email in C:\wamp64\www\rodrigo\conectar2.php on line 11
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
$nombredb="db";
$direccion="localhost";
$contraseña="";
$user="root";
$conexion= mysqli_connect($direccion, $user,$contraseña,$nombredb);
session_start();
if(isset($_POST["email"])){$email=$_POST["email"];}
if(isset($_POST["contra"])){$email=$_POST["contra"];}
$mancha="SELECT * FROM informacion WHERE email = '$email'";
$query= mysquli_query($conexion,$mancha);
if($query && mysqli_num_rows($query)==1){
$naty=mysqli_fetch_assoc($query);
$con=password_verify($contraseña,$query["apellido"]);
if($con){ $_SESSION["errorpasword"]="error en el pasword";}
else{$_SESSION["completo"]="completado";}
}
else{$_SESSION["error"]="error en el email";}
Valora esta pregunta


0