mysql_connect( $host,$username,$pass_word) or die ("µÔ´µè͡Ѻ°Ò¹¢éÍÁÙÅ Mysql äÁèä´é ");
mysql_select_db($db) or die("àÅ×Í¡°Ò¹¢éÍÁÙÅäÁèä´é");
$sql = "SELECT * from orders join order_items on orders.order_id=order_items.order_id";
$result = mysql_query($sql);
if(!$result)
return "¡ÃسҵÃǨÊͺ¤ÔÇÃÕèÍÕ¡¤ÃÑé§ <br>";
if(mysql_num_rows($result)>0)
return "ÁÕ¢éÍÁÙÅ«éӡѹ<br>";
$result1 = mysql_query("select * order_id,username,amout,date_of_sale,cus_name,cus_surname,cus_addr,cus_tel from orders join order_items on orders.order_id=order_items.order_id");