-5
<?php

$cat_id = $globalClass->getRow("prod_category","`category`='".$get_cat['id']."'");

for($m = 0; $m<count($cat_id); $m++)

{

$product = $globalClass->getRow1("product","`id`='".$cat_id[$m]['prod_id']."'");
if(!empty($product[0]['id']))
{
for($k=0; $k<count($product); $k++)

{



?>

$product = $globalClass->getRow1("product","如何在id中按名称升序使用 order='".$cat_id[$m]['prod_id']."'");

4

1 回答 1

0

根据您的信息,我可以建议您如下:

$product = $globalClass->getRow1("product","id='".$cat_id[$m]['prod_id']."' order by name asc");
于 2013-01-15T11:22:15.920 回答