You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$loginquery="SELECT * FROM login WHERE userid='$userid'";
$loginresult=mysql_query($loginquery);
if (!mysql_num_rows($loginresult))
{
header("location: 404.php"); //If not redirect
}
$myuserid = $_SESSION['userid'];
//Delete Friend
$requestquery="DELETE from relations where userid1 = '$myuserid' AND userid2 = '$userid'"; //Since userid1 and userid2 are a combined primary key, there is no problem with this
$result=mysql_query($requestquery,$conc) or die("Unable to send friend request");
header("location: home.php"); //Redirect back to user's profile