title: Why would this work in WAMP (offline) but not online?
body: <p>I don't even know whats going on, this worked in my WAMP version, but when I transfered it to an online project for school it gives me this: "<strong>Fatal error: Call to a member function fetch_assoc() on a non-object in /home/hogand5/public_html/bryson/view_adopt.php on line 7</strong>"</p>
  
  <pre><code>&lt;?php
      session_start();
      include("../connection/connect.php");
      $pokeId = $_SESSION['id'];
  
      $result = mysqli_query($con, "select * from eebb_pokemon where `id` = ".$pokeId."");
      $row = $result-&gt;fetch_assoc();
  
  
      mysqli_close($con);
  ?&gt;
  </code></pre>
  
  <p>I'm trying to use that data to populate my HTML below:</p>
  
  <pre><code>&lt;div id='slideWrap' style='position:relative; float:left; text-align:center;'&gt;
      &lt;img src="&lt;?php echo $row['imageURL'];?&gt;" height='200px'/&gt;&lt;br/&gt;
  &lt;/div&gt;
  &lt;div id='textSection' style='text-align:center;'&gt;
      &lt;h2&gt;&lt;?php echo $row['name'];?&gt;&lt;/h2&gt;
      &lt;p&gt;
          &lt;?php echo $row['bio'];?&gt;
      &lt;/p&gt;
  &lt;/div&gt;
  </code></pre>