title: At the bottom of loaded data showing "11111111" why?
body: <p>I am using PHP and Ajax to get Data. Data get successfully, but after loaded data at the bottom of loaded data showing &quot;1111111&quot;. Why?</p>
  <p>I try to find solution on different websites, but  i can't. please help me. Advanced Thanks.</p>
  <p><a href="https://i.stack.imgur.com/pqUlD.png" rel="nofollow noreferrer">please see the attached image</a></p>
  <p>Here is my PHP code (load_more.php) :</p>
  <pre><code>&lt;?php
      include '../../includes/session.php';
      $conn = $pdo-&gt;open();
      $id= $_POST['last_product_id'];
      $output = '';
          $stmt = $conn-&gt;prepare(&quot;SELECT *, COUNT(*) AS numrows FROM products WHERE id &lt; :id ORDER BY id DESC&quot;);
          $stmt-&gt;execute(['id'=&gt;$id]);
          $row = $stmt-&gt;fetch();
          $totalRowCount = $row['numrows'];
          $showLimit = 6;
          try {
              $stmt = $conn-&gt;prepare(&quot;SELECT * FROM products WHERE id &lt; :id ORDER BY id DESC LIMIT $showLimit&quot;);
              $stmt-&gt;execute(['id'=&gt;$id]);
              foreach($stmt as $row){
                  $product_id = $row['id'];
                      if (!empty($row['old_price'])){
                          $cart_wish_btn = '
                              &lt;small&gt; &lt;del class=&quot;taka_sign_sm text-secondary&quot;&gt;'.number_format($row['old_price'], 0).'
                              &lt;/del&gt; &lt;span class=&quot;ml-2 badge border border-success rounded text-success badge-sm&quot;&gt;'.number_format($current_price,0).'% OFF&lt;/span&gt;&lt;/small&gt;';
                          }
                  $current_price = 100 -(($row['price'] / $row['old_price']) * 100) ;
                  $image = (!empty($row['photo'])) ? '../../images/products/'.$row['photo'] : '../../images/noimage.jpg';
                  
                  
                  $output .= ''.include ('../product/item_view_5.php').'';
                  
                  
              }
                   if($totalRowCount &gt; $showLimit){ 
                       $output .= '  
                          &lt;div class=&quot;show_more_main&quot; id=&quot;show_more_main'.$product_id.'&quot;&gt;
                              &lt;div id=&quot;'.$product_id.'&quot; class=&quot;show_more&quot;&gt;&lt;/div&gt;
                              &lt;div class=&quot;loding&quot; style=&quot;display: none;&quot;&gt;&lt;div class=&quot;spinner-border spinner-border-sm text-primary&quot;&gt;&lt;/div&gt;&lt;/div&gt;
                          &lt;/div&gt;
                      ';
                   }
          }
          catch(PDOException $e){
              $output .= $e-&gt;getMessage();
          }
  
      $pdo-&gt;close();
      echo $output;
  ?&gt;
  </code></pre>
  <p>Here is my AJax:</p>
  <pre><code>$(document).ready(function() {
          //$(document).on('click', '.show_more', function() {
              $(window).scroll(function(){
                  var ID = $('.show_more').attr('id');
                  if(($(window).scrollTop() == $(document).height() - $(window).height()) &amp;&amp; (ID != 0)){
                      $('.show_more').hide();
                      $('.loding').show();
                      $.ajax({
                          type: 'POST',
                          url: &quot;../product/load_more.php&quot;,
                          data: 'last_product_id=' + ID,
                          success: function(html) {
                              $('#show_more_main' + ID).remove();
                              $('.load_data_table').append(html);
                          }
                      })
                  }
              })
          });
  </code></pre>
  <p>Here is my HTML:</p>
  <pre><code>&lt;div class=&quot;row row-cols-2 row-cols-sm-4 row-cols-md-6 px-2 load_data_table&quot;&gt;&lt;/div&gt;
  &lt;div class=&quot;show_more_main&quot; id=&quot;show_more_main&lt;?php echo $product_id; ?&gt;&quot;&gt;
  &lt;div id=&quot;&lt;?php echo $product_id; ?&gt;&quot; class=&quot;show_more&quot;&gt;&lt;/div&gt;
  &lt;div class=&quot;loding&quot; style=&quot;display: none;&quot;&gt;&lt;div class=&quot;spinner-border spinner-border-sm text-primary&quot;&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>