$strSQL = "SELECT * FROM packing
Left JOIN flavor ON (flavor.ProductID = product.FilesID)";
Left JOIN product ON(packing.ProductID = product.FilesID)
ORDER BY product.Productname WHERE product.ProductID = '".$_GET["FilesID"]."' ";
$objQuery = mysql_query($strSQL) or die ("Error Query [".$strSQL."]");
$strSQL = "SELECT * FROM flavor WHERE ProductID = '".$_GET["FilesID"]."' ";"INNER JOIN product ON (flavor.ProductID = product.FilesID)";
$strSQL = "SELECT * FROM packing WHERE ProductID = '".$_GET["FilesID"]."' ";
" Left JOIN product ON(packing.ProductID = product.FilesID)ORDER BY packing.FilesID DESC
Left JOIN product ON(packing.Productname = product.Productname)ORDER BY product.Productname";
$sql =<<<SQL
select a.*,b.*,c.*
from table1 a
inner join table2 b
on a.xid=b.xid
inner join table3 c
on a.yid=c.yid and b.zid=c.zid
where mmddyy = now()
and abc = '$dataabc'
and (mmm in (1,2,3,4,5,6) or nnn in (7,8,9,10))
SQL;