Read 251 times | Created 2013-01-31 01:24:25 | Updated 2013-01-31 01:45:47 | | |

 

<?php
$sql="SELECT * FROM order_jual WHERE status='0' AND konfirmasi='0' "
    .((isset($_POST['produk']) && !empty($_POST['produk']))?" AND nama='".$_POST['produk']."'":"")
    .((isset($_POST['carinoder']) && !empty($_POST['carinoder']))?" AND noder LIKE '%".$_POST['carinoder']."%'":"")
    ." ORDER BY noder ASC");
$rst=mysql($sql);
if(mysql_num_rows($rst)>0){
  while($rows=mysql_fetch_object($rst)){
    // tulis script untuk menampilkan hasil pencarian dimari ..
  }
}
//....