//Action
$sql = "SELECT * FROM product"
. " WHERE category = '$categoryID' AND style = '$styleID'"
. " ORDER BY prodID";
// . " LIMIT $start_record, $page_size";
$result = mysql_query($sql) or die(mysql_error());
$sql = "SELECT * FROM product"
. " WHERE category = '$categoryID' AND style = '$styleID'"
. " GROUP BY category";
$result2 = mysql_query($sql) or die(mysql_error());
$sql = "SELECT GROUP_CONCAT( IFNULL(prodName,'#NULL#') SEPARATOR ', ') AS nameComp FROM product"
. " WHERE category = '$categoryID' AND style = '$styleID'"
. " GROUP BY category";
$result2 = mysql_query($sql) or die(mysql_error());