<?php
session_start();
include("conn.php");
if(isset($_POST['login'])){
if($_POST['user']=="admin" and $_POST['pass']=="abc123"){
$_SESSION['user']=1;
header("location:login.php");
exit(); }
else {
echo "WRONG USERNAME OR PASSWORD";
}
}
?>
Please convert it so that the username and password will be compared to the database.. database is dbcom, tbluser with two fields user and pass...
need any reply as soon as possible, running out of time for our project... help is highly appreciated, thanks