$user_id=$_POST['user_id'];
$job_id=$_POST['job_id'];
$result= mysqli_query($con, "SELECT id FROM tb_example WHERE user_id='$id' AND job='$job_id'");
if ($result)
{
$row = mysqli_num_rows($result);
if ($row)
{
// return redirect back
}else{
// true
}
}