Advertisement
justhrun

newjersey.pehape

Jul 25th, 2014
300
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.57 KB | None | 0 0
  1.  
  2. <ul class="thumbnails listing-products">
  3. <?php
  4. $query = " SELECT p.*, s.* from produk as p left join stok as s
  5.     on s.idproduk = p.idproduk order by p.idproduk desc";
  6.  
  7. if(isset($_GET['idkategori'])) {
  8.     $id = $_GET['idkategori'];
  9.     if($id=="jersey") {
  10.     echo "<b>Tes menu jersey</b>";
  11.     } else if(!empty($id)) {
  12.     $query = " SELECT p.*,s.* from produk as p left join stok as s
  13.     on s.idproduk = p.idproduk where p.idkategori='$id'";
  14.     }
  15. }
  16.  
  17. $result = mysql_query($query) or die(mysql_error());
  18. $no = 1;
  19. //proses menampilkan data .............. SILAKAN DILANJUT
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement