Advertisement
Guest User

Untitled

a guest
Feb 24th, 2017
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.         require_once ('config.php');
  3.  
  4.         $queryResult = mysqli_fetch_assoc(mysqli_query($link, "SELECT * FROM products WHERE pid=1"));
  5.  
  6.             $cid = $queryResult['cid'];
  7.             $pid = $queryResult['pid'];
  8.                                     $query = mysqli_query($link, "SELECT * FROM `products_fields` WHERE pid=$pid");
  9.                                     $row = mysqli_fetch_assoc($query);
  10.                                     foreach($row as $field => $value)
  11.                                         {
  12.                                             echo $field.' = '.$value.'</br>';
  13.                                         }
  14.  
  15. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement