title: Retrieving post data from database not showing
body: <p>I try to retrieve data from the database, fixed error messages but still data isn't showing up, <a href="http://localhost/webpage/info.php?post_id=76" rel="nofollow noreferrer">http://localhost/webpage/info.php?post_id=76</a> (post id depends on the post that i click). Also, I am aware that some variables aren't showing, I am working on putting everything in place just the things that I placed don't show up. Also there is a connection to a database, only that I won't show whole file because its too big.</p>
  
  <p>Code of the function that gives problems <a href="https://i.stack.imgur.com/joetv.png" rel="nofollow noreferrer">screenshot of error</a>: </p>
  
  <pre><code>function single_post(){
  
      if (isset($_GET['post_id'])) {
          global $con;
          $get_id = $_GET['post_id'];
          $get_posts = "select * from posts where post_id='get_id'";
          $run_posts = mysqli_query($con, $get_posts);
          $row_posts = mysqli_fetch_array($run_posts);
  
          $post_id = $row_posts['post_id'];
          $user_id = $row_posts['user_id'];
          $post_content = $row_posts['post_content'];
          $post_content2 = $row_posts['post_content2'];
          $price = $row_posts['price'];
          $pclass = $row_posts['pclass'];
          $specificclass = $row_posts['specificclass'];
          $upload_image = $row_posts['upload_image'];
          $post_date = $row_posts['post_date'];
  
          $user = "select * from users where user_id='$user_id' AND posts='yes'";
  
          $run_user = mysqli_query($con , $user);
          $row_user = mysqli_fetch_array($run_user);
  
          $user_name = $row_user['user_name'];
          $user_image = $row_user['user_image'];
  
          if (isset($_GET['post_id'])) {
              $post_id = $_GET['post_id'];
          }
          $get_posts = "select post_id from users where post_id='$post_id'";
          $run_user = mysqli_query($con,$get_posts);
  
          $post_id = $_GET['post_id'];
          $post = $_GET['post_id'];
          $get_user = "select * from posts where post_id='$post'";
          $run_user = mysqli_query($con, $get_user);
          $row = mysqli_fetch_array($run_user);
  
          $p_id = $row['post_id'];
  
          if ($p_id != $post_id) {
              echo "&lt;script&gt;alert('ERROR')&lt;/script&gt;";
          }
          else{
              echo"
              &lt;h2&gt;&lt;strong&gt;Información del producto:&lt;/strong&gt;&lt;/h2&gt;&lt;br&gt;
              &lt;p&gt;&lt;strong&gt;Nombre del producto: &lt;/strong&gt;$post_content&lt;/p&gt;&lt;br&gt;
              &lt;p&gt;&lt;strong&gt;Información: &lt;/strong&gt;$post_content2&lt;/p&gt;&lt;br&gt;
              &lt;p&gt;&lt;strong&gt;Precio dispuesto a pagar: &lt;/strong&gt; $price&lt;/p&gt;&lt;br&gt;
              &lt;p&gt;&lt;strong&gt;Categoría: &lt;/strong&gt; $pclass&lt;/p&gt;&lt;br&gt;
              &lt;p&gt;&lt;strong&gt;Subcategoría: &lt;/strong&gt; $specificclass&lt;/p&gt;&lt;br&gt;
              ";
          }
  
      }
  }
  </code></pre>