while
loop仅适用于foreach
值的第一条记录。我无法理解为什么。任何帮助将不胜感激。while foreach while while in php does not work
foreach($country_array as $country_new)
{
$result=mysql_query("select product.product_id,product.product_name from product left join country_iso_telcode on product.country=country_iso_telcode.country_name left join product_category_listing on product.product_id=product_category_listing.product_id where product.product_name REGEXP '[[:<:]]$search' and country_iso_telcode.region='$region' and product.country='$country_new'")or die("wrong query in search results displaying button results");
while($row=mysql_fetch_array($result))
{
$product_id=$row['product_id'];
$product_name=$row['product_name'];
}
}
您有这方面再次询问现在,删除你刚才的问题.. – 2013-04-22 11:46:25
你不能强迫任何人回答或一再提出的问题以刺激他们.. – 2013-04-22 11:53:07
为什么我的问题会刺激任何人?我不是在这里强迫任何人..我以前的帖子被关闭,并成为一个垃圾无尽的答复。我还能做些什么@Coder – Sha 2013-04-22 12:14:34