Guest User

Untitled

a guest
Nov 15th, 2017
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. if (isset($_GET['product_id'])) {
  2. $the_product_id = mysqli_real_escape_string($connection, $_GET['product_id']);
  3. }
  4.  
  5. $query = "SELECT * FROM products WHERE product_id = {$the_product_id} AND product_status = 'published'";
  6. $select_breadcrumb = mysqli_query($connection, $query);
  7.  
  8. while ($row = mysqli_fetch_assoc($select_breadcrumb)) {
  9. $product_id = $row['product_id'];
  10. }
Advertisement
Add Comment
Please, Sign In to add comment