รบกวนดู code search ข้อมูล จาก list คับ มี3 เงือ่นไข แต่พอเลือกแล้วออกมาทั้งหมดเลยคับ
ไม่ทราบว่าต้องแก้ไขยังงัยคับ รบกวนผู้รู้ช่วยดูให้หน่อยคับ
mysql_connect($host,$user,$password) or die ("Can't connect to host");
mysql_select_db($dbname) or die("Can't connect to database");
$sql = "select * from product where (groupid like '%".$_POST["groupid"]."%')and (shape like '%".$_POST["shape"]."%')and (quality like '%".$_POST["quality"]."%')";
$result=mysql_query($sql);
$totalrecord = mysql_num_rows($result);
$sql = "select * from product where (groupid like '%".$_POST['groupid']."%')and (shape like '%".$_POST['shape']."%')and (quality like '%".$_POST['quality']."%')";
$result=mysql_query($sql) or die (mysql_error());
$totalrecord = mysql_num_rows($result);
$sql = "select * from product where (groupid like '%".$_POST["groupid"]."%')and (shape like '%".$_POST["shape"]."%')and (quality like '%".$_POST["quality"]."%')";
$result = mysql_query($sql. " LIMIT " . $limit_start. "," . $limit_end);
$count = mysql_num_rows($result);
$total = mysql_num_rows(mysql_query($sql));
if($total > 0){
echo"<table>";
}
echo $hwel;
$count=0;
while($row=mysql_fetch_array($result))
{
if($count==0)
{
?>