Example #1
0
function unfollow_user($me, $them)
{
    $count = check_count($me, $them);
    if ($count != 0) {
        $sql = "delete from following \n\t\t\t\twhere user_id='{$them}' and follower_id='{$me}'\n\t\t\t\tlimit 1";
        $result = mysql_query($sql);
    }
}
Example #2
0
function unfollow_user($me, $them)
{
    global $conn;
    $count = check_count($me, $them);
    if ($count != 0) {
        $sql = "delete from following where user_id='{$them}' and follower_id='{$me}' limit 1";
        $result = mysqli_query($conn, $sql);
    }
}