Create an if statement with these ifs
<p>I am designing a social network site and am adding the final piece to the puzzle. It is regarding the buttons, Unfriend and Add Friend. And when the Session matches the ID, they shouldn't appear.</p>

<p>The Unfriend button appears when it is needed. And so does Add Friend to an extent it works as well for my profile despite a clear collection of if statements that say it shouldn't do that.</p>

<p>In short, I don't want it to appear on my profile and the two IF statements at the bottom I am havng trouble combining</p>

<p>I am really stuck and my code is below: </p>

<pre><code>    $cool = $_GET['id'];
    $evan = mysql_query("SELECT * FROM users WHERE username='{$_SESSION['user_login']}'");
    $joe1 = mysql_fetch_assoc($evan);


    $cookie = mysql_query("SELECT * FROM users WHERE id='{$_GET['id']}'");
    $joe = mysql_fetch_assoc($cookie);

    if (in_array($_SESSION['user_login'], $friendArray)) {
         $addAsFriend = '&lt;input type="submit" name="removefriend" value="UnFriend"&gt;';
           echo $addAsFriend;
             }
    if ($_GET['id'] == $joe1['id']) {
     $addAsFriend = '&lt;input style="display:none;" type="submit" name="addfriend" value="Add Frimm1end"&gt;';
    echo $addAsFriend;

       }


     if (!$_GET['id'] == $joe1['id']) {
 $addAsFriend = '&lt;input type="submit" name="addfriend" value="Add Friend"&gt;';
 echo $addAsFriend; 
      }
      if (!in_array($joe1['username'], $friendArray)) {
 $addAsFriend = '&lt;input type="submit" name="addfriend" value="Add Friend"&gt;';
         echo $addAsFriend;
     } 
</code></pre>
