echo $page_name;
THE HIGHEST QUALITY PRODUCTS
$history_array = array();
$query = " select * from sm_history a where 1=1 ".$his_language_query." order by his_year desc, his_idx desc" ;
$result = query($query);
$cnt = mysqli_num_rows($result);
if($cnt){
while($row = mysqli_fetch_array($result)){
$history_array[$row["his_year"]][$row["his_idx"]]["name"]=$row["his_title"];
$history_array[$row["his_year"]][$row["his_idx"]]["month"]=$row["his_month"];
$history_array[$row["his_year"]][$row["his_idx"]]["content"]=$row["his_content"];
}
}
HISTORY
if(count($history_array)){
foreach($history_array as $key => $val){
=$key
php
if(count($history_array[$key])){
foreach($history_array[$key] as $skey =>$sval){
=$sval["month"] |
=nl2br($sval["content"]) |
}
}
php
}
}