<?
if
($id_group =="")
}
$sql_group = mysql_query("select * from product_ssumphan where id_type = '$id_type' order by id_ssumphan_pro DESC");
}
else
{
$sql_group = mysql_query("select * from product_ssumphan where id_type = '$id_type' and id_group = '$id_group'");
}
?>
<?
if
($id_group =="") } //เครื่องหมาย } ใช้ตอนปิดคำสั่งครับ
$sql_group = mysql_query("select * from product_ssumphan where id_type = '$id_type' order by id_ssumphan_pro DESC");
}
else
{
$sql_group = mysql_query("select * from product_ssumphan where id_type = '$id_type' and id_group = '$id_group'");
}
?>
ขอให้เปลี่ยนเป็น
Code
<?
if($id_group =="")
{
$sql_group = mysql_query("select * from product_ssumphan where id_type = '$id_type' order by id_ssumphan_pro DESC");
} else {
$sql_group = mysql_query("select * from product_ssumphan where id_type = '$id_type' and id_group = '$id_group'");