SoloSql2('gro_products_class1',"1 ORDER BY `order` ASC");
$i = 0;
$a = 1;
while($return[ $i ]){
?>
SoloSql2('gro_products_class2',"cid = '".$return[ $i ][id]."' ORDER BY `order` ASC");
$d = 0;
while($return2[ $d ]){
?>
SoloSql2('gro_products',"pid = '".$return2[ $d ][id]."' ORDER BY `order` ASC");
$x = 0;
while($return3[ $x ]){
?>
SoloSql('gro_products_class1'," 1 ORDER BY `order` ASC");
$row2=$db_sql->SoloSql('gro_products_class2',"cid = '".$row[id]."' ORDER BY `order` ASC");
}else{
$row=$db_sql->SoloSql('gro_products_class1',"id = '".$_GET['sid']."' ORDER BY `order` ASC");
$row2=$db_sql->SoloSql('gro_products_class2',"id = '".$_GET['cid']."' ORDER BY `order` ASC");
$row3=$db_sql->SoloSql('gro_products',"id = '".$_GET[id]."'");
}
$row_page = $db_sql->SoloSql('gro_products',"(`id` > '".$_GET['id']."' and `pid` = '".$row2['id']."') order by `add_date` asc");
$row_end = $db_sql->SoloSql('gro_products',"(`id` < '".$_GET['id']."' and `pid` = '".$row2['id']."') order by `add_date` desc");
?>