title: PHP and MySQL help for Shopping Cart
body: <p>I have gotten stuck in a Homework Project where I need to incorporate a Online E-Commerce Store onto my HTML and CSS Barebones Web Page.</p>
  
  <p>I'm trying to get the Add To Cart Button to display and this is the code I have but it is not displaying at all.</p>
  
  <pre><code>&lt;script&gt;
          $(document).ready(function(){
          // add to cart button listener
          $('.add-to-cart-form').on('submit', function(){
  
              // info is in the table / single product layout
              var id = $(this).find('.product-id').text();
              var quantity = $(this).find('.cart-quantity').val();
  
              // redirect to add_to_cart.php, with parameter values to process the request
              window.location.href = "add_to_cart.php?id=" + id + "&amp;quantity=" + quantity;
              return false;
          });
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>This is one of the subpages, not the main page.</p>
  
  <p>I'm trying to get the idea from this link : <a href="https://www.codeofaninja.com/2015/08/simple-php-mysql-shopping-cart-tutorial.html" rel="nofollow noreferrer">https://www.codeofaninja.com/2015/08/simple-php-mysql-shopping-cart-tutorial.html</a>.</p>
  
  <p>I'm trying to get forward but I can't even get their example to work on my project.</p>
  
  <p>I keep on getting the same webpage as before and none of their changes are showing up.</p>
  
  <p>Please don't hesitate to ask for additional details.</p>
  
  <p>This is my first time on Stack Overflow. I'm a beginner on making websites. Any help would be appreciated. I need to have this done by Friday.</p>
  
  <p>Thank you all in Advance.</p>