prepare('SELECT * FROM Manager_Profile WHERE Manager_ID = ?');
$stmt->bind_param('s', $Broker_ID);
$stmt->execute();
$result = $stmt->get_result();
$row = $result->fetch_assoc();
$count =$result->num_rows;
if($count > 0)
{
if (!$mysqli->query("UPDATE Manager_Profile SET Profile_Status='".$Status."' WHERE Admin_ID ='".$row['Admin_ID']."' and Master_ID ='".$row['Master_ID']."' and Manager_ID='".$row['Manager_ID']."'")) {
}
echo "The status has been changed!";
}
}else
{
//echo "Choose User";
}
?>