$order = mysql_query("SELECR * FROM master m INNER JOIN pc p ON m.id_master = p.id_master") or die(mysql_error()); print_r($order);