$query = "SELECT sale_day, count(id) FROM salelao where place='$place' and sale_country='Lao' GROUP BY sale_day";
$query4 = "SELECT sale_day, count(id) FROM sale where place='$place' and sale_country='Allemagne' GROUP BY sale_day";
$query5 = "SELECT sale_day, count(id) FROM sale where place='$place' and sale_country='Europe' GROUP BY sale_day";
$query7 = "SELECT sale_day, count(id) FROM sale where place='$place' and sale_country='Chinese' GROUP BY sale_day";
$query11 = "SELECT sale_day, count(id) FROM sale where place='$place' and sale_country='Autre' GROUP BY sale_day";
$result = mysql_query($query) or die(mysql_error());
$result4 = mysql_query($query4) or die(mysql_error());
$result5 = mysql_query($query5) or die(mysql_error());
$result7 = mysql_query($query7) or die(mysql_error());
$result11 = mysql_query($query11) or die(mysql_error());
while($row = mysql_fetch_array($result) and $row4 = mysql_fetch_array($result4) and $row5 = mysql_fetch_array($result5) and $row7 = mysql_fetch_array($result7) and $row11 = mysql_fetch_array($result11)){
CREATE TABLE `sale` (
`id` int(11) NOT NULL auto_increment,
`sale_day` date NOT NULL,
`sale_month` date NOT NULL,
`sale_pice` varchar(15) NOT NULL,
`sale_country` varchar(255) NOT NULL,
`place` varchar(50) NOT NULL,
`FilesName` varchar(100) NOT NULL,
`id_no` int(6) unsigned zerofill NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=10 ;
CREATE TABLE `salelao` (
`id` int(11) NOT NULL auto_increment,
`sale_day` date NOT NULL,
`sale_month` date NOT NULL,
`sale_pice` varchar(15) NOT NULL,
`sale_country` varchar(255) NOT NULL,
`place` varchar(50) NOT NULL,
`FilesName` varchar(100) NOT NULL,
`id_no` int(6) unsigned zerofill NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=utf8 AUTO_INCREMENT=3 ;
$query = "SELECT sale_day, count(id) FROM salelao where place='$place' and sale_country='Lao' GROUP BY sale_day";
$query1 = "SELECT sale_day, count(id) FROM sale where place='$place' and sale_country='France' GROUP BY sale_day";
$query2 = "SELECT sale_day, count(id) FROM sale where place='$place' and sale_country='Italian' GROUP BY sale_day";
$query3 = "SELECT sale_day, count(id) FROM sale where place='$place' and sale_country='Espagne' GROUP BY sale_day";
$query4 = "SELECT sale_day, count(id) FROM sale where place='$place' and sale_country='Allemagne' GROUP BY sale_day";
$query5 = "SELECT sale_day, count(id) FROM sale where place='$place' and sale_country='Europe' GROUP BY sale_day";
$query6 = "SELECT sale_day, count(id) FROM sale where place='$place' and sale_country='Etats-Unis' GROUP BY sale_day";
$query7 = "SELECT sale_day, count(id) FROM sale where place='$place' and sale_country='Chinese' GROUP BY sale_day";
$query8 = "SELECT sale_day, count(id) FROM sale where place='$place' and sale_country='Vietnam' GROUP BY sale_day";
$query9 = "SELECT sale_day, count(id) FROM sale where place='$place' and sale_country='Japan' GROUP BY sale_day";
$query10 = "SELECT sale_day, count(id) FROM sale where place='$place' and sale_country='Thailand' GROUP BY sale_day";
$query11 = "SELECT sale_day, count(id) FROM sale where place='$place' and sale_country='Autre' GROUP BY sale_day";
$result = mysql_query($query) or die(mysql_error());
$result1 = mysql_query($query1) or die(mysql_error());
$result2 = mysql_query($query2) or die(mysql_error());
$result3 = mysql_query($query3) or die(mysql_error());
$result4 = mysql_query($query4) or die(mysql_error());
$result5 = mysql_query($query5) or die(mysql_error());
$result6 = mysql_query($query6) or die(mysql_error());
$result7 = mysql_query($query7) or die(mysql_error());
$result8 = mysql_query($query8) or die(mysql_error());
$result9 = mysql_query($query9) or die(mysql_error());
$result10 = mysql_query($query10) or die(mysql_error());
$result11 = mysql_query($query11) or die(mysql_error());
while($row = mysql_fetch_array($result) and $row1 = mysql_fetch_array($result1) and $row2 = mysql_fetch_array($result2) and $row3 = mysql_fetch_array($result3) and $row4 = mysql_fetch_array($result4) and $row5 = mysql_fetch_array($result5) and $row6 = mysql_fetch_array($result6) and $row7 = mysql_fetch_array($result7) and $row8 = mysql_fetch_array($result8) and $row9 = mysql_fetch_array($result9) and $row10 = mysql_fetch_array($result10) and $row11 = mysql_fetch_array($result11)){