can anyone please tell me why when the results are equal then it echo's out the response, but when the results are false then it shows a blank page. I am sure i have gone wrong somewhere.
if(isset($_GET['EX1']) && $_GET['EX2'] != ""){
$Email = $_GET['EX1'];
$Password = $_GET['EX2'];
$userDetails = DB::table('applicants')
->where('Email', '=', $Email)
->where('Password','=', $Password)
->get();
if($Email = $userDetails[0]->Email && $Password = $userDetails[0]->Password){
echo 'Both are the same ';
}else{
echo 'Not the same';
}
}
Request?first()instead ofget(). Then you can drop the[0]from your userDetails.