//$con = mysqli_connect("localhost", "front", "546Front789!#", "truckMonitoring") or die(mysqli_error($con)); include 'dbConnect.php'; if(isset($_POST["login"])) { //echo "reached"; $userName = $_POST["userName"]; $password = $_POST["password"]; //Slno activityId activityName priority dateInit area taskCo remarks status lastUpdated deadline category //echo $area." ".$category." ".$activity." ". $taskcoordinator." ".$officerresponsible." ".$dateInit." ".$ststus; $sql1 = "select * from userMaster where userName = '$userName' and password = '$password'"; //echo $sql1; $query1 = mysqli_query($con,$sql1) or mysqli_error(); $rowCount = mysqli_num_rows($query1); if($rowCount==1) { session_start(); $_SESSION["userName"] = $userName; $_SESSION["password"] = $password; header("location:activityMain.php"); } //echo $sql2; } ?>