$host="localhost";
$username="";
$pass_word="";
$db="joon";
$tb="catalog";
mysql_connect( $host,$username,$pass_word) or die ("ติดต่อกับฐานข้อมูล Mysql ไม่ได้ ");
mysql_select_db($db) or die("เลือกฐานข้อมูลไม่ได้");
echo "<table align= center><tr>";
$sql = "select * From catalog where catid='$catid' group by brand";