0
<?php
session_start();
$user=$_POST['uname'];
$_SESSION['username']=$user;
$con=mysql_connect("localhost","root","");
mysql_select_db("airline")or die("Db error");


$username=$_POST['uname'];
$password=$_POST['ptxt'];


$username = stripslashes($username);
$password = stripslashes($password);
$username = mysql_real_escape_string($username);
$password = mysql_real_escape_string($password);


$query = mysql_query("select * from user where password='$password' AND name='$username'");

if( $username == 1 && $password == 1);
header("Location:/user.php");
?>

plz help me ? :(

Edited by diafol: reformatted code

3
Contributors
3
Replies
23
Views
2 Years
Discussion Span
Last Post by Hijran
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.