$OrderByArray[] = $dateinsert_orderby." desc"; $OrderByArray[] = "shopcoins.price desc"; } if ($search === 'revaluation') { $OrderByArray[] = "shopcoins.datereprice desc"; $OrderByArray[] = "shopcoins.price desc"; $OrderByArray[] = "shopcoins.".$dateinsert_orderby." desc"; } if (sizeof($OrderByArray)){ $orderby = array_merge(array("shopcoins.check ASC"),$OrderByArray); } */ $data = $viporder_class->getCoins($id); //$result_search = mysql_query($sql); $ArrayParent = Array(); $tpl['shop']['MyShowArray'] = Array(); $tpl['shop']['ArrayParent'] = Array(); if($data){ foreach ($data as $rows){ $tpl['shop']['ArrayShopcoins'][] = $rows["shopcoins"]; $tpl['shop']['ArrayParent'][] = $rows["parent"]; $tpl['shop']['MyShowArray'][] = $rows; } } if (sizeof($tpl['shop']['ArrayParent'])) { $result_search = $shopcoins_class->getCoinsParents($tpl['shop']['ArrayParent']);