“sintaxis sql checher” Código de respuesta

sintaxis sql checher

if (isset($_POST['submit']))
{
		$email = $_POST['txtemail'];
		$password = $_POST['txtpwd'];
		$sql = mysqli_query($conn,"SELECT * FROM user WHERE email='$email' and password='$password'");
		echo "SELECT * FROM user WHERE email='$email' and password='$password'";
	
		
		
		
		if(!$sql){
		printf("Error: %s\n", mysqli_error($conn));
		exit();
		
		//header("location:home.php");
		}

		$sql_data = mysqli_fetch_assoc($sql);
		print_r($sql_data);
		if (!empty($sql_data)){
			$_SESSION["txtemail"] = $sql_data['txtemail'];
			$_SESSION["txtname"] = $sql_data['txtname'];
			$_SESSION["txtpwd"] = $sql_data['txtpwd'];
			
			//while($row = mysqli_fetch_array($conn,$sql_data))

			header("location:home.php");
		}
}
Tapan Agrawal

Verificador de consultas SQL

CREATE TABLE employee

   ( employee_id VARCHAR(20),

    Name VARCHAR (20),

    Address VARCHAR (20),

    Mobile_no  SMALLINT);
Real Rattlesnake

Respuestas similares a “sintaxis sql checher”

Preguntas similares a “sintaxis sql checher”

Más respuestas relacionadas con “sintaxis sql checher” en Sql

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código