是的,我給了美國,類似於Rassia
$USA1 = mysql_query("SELECT * FROM relation_country WHERE country_a= 'USA'");
$USA_numrows1 = mysql_num_rows($USA1);
if($USA_numrows1!=0){
while($row1 = mysql_fetch_assoc($USA1)){
$country_b =$row1['country_b'];
echo $country_b."<br/>";
}
}
$ USA2 =請求mysql_query( 「SELECT * FROM relation_country WHERE country_b = 'USA'」); $ USA_numrows2 = mysql_num_rows($ USA2);
if($USA_numrows2!=0){
while($row2 = mysql_fetch_assoc($USA2)){
$country_a =$row2['country_a'];
echo $country_a."<br/>";
}
}
$ russia1 =請求mysql_query( 「SELECT * FROM relation_country WHERE country_a = '俄羅斯'」); $ russia_numrows1 = mysql_num_rows($ russia1);
if($russia_numrows1!=0){
while($row3 = mysql_fetch_assoc($russia1)){
$country_b1 =$row3['country_b'];
echo $country_b1."<br/>";
}
}
$ russia2 = mysql_query(「SELECT * FROM relation_country WHERE country_b ='russia'」); $ russia_numrows2 = mysql_num_rows($ russia2);
if($russia_numrows2!=0){
while($row4 = mysql_fetch_assoc($russia2)){
$country_a1 =$row4['country_a'];
echo $country_a1."<br/>";
}
}
可以請你發佈你的代碼來編輯它嗎? – Abkarino 2014-10-19 15:00:14
拉斯亞是一個國家嗎? – 2014-10-19 15:23:28
對不起,這將是俄羅斯。(是的,這是一個國家,我的意思是) – 2014-10-19 15:30:51