Banner Berita  
 
 
 


decrypt($x); $SQL = "SELECT * FROM adm_banner WHERE newsid = '".$x."' ORDER BY newsdate DESC"; $RS =$db->Execute($SQL); $list_news_id = $RS->fields["newsid"]; $list_news_title = $RS->fields["newstitle"]; $list_news_desc = $RS->fields["newsdescription"]; $list_news_picture = $RS->fields["thumbnail"]; $list_newsfileimage = $RS->fields["news_picture"]; $list_news_date = mktime(0, 0, 0, date('m',strtotime($RS->fields["newsdate"])),date('d',strtotime($RS->fields["newsdate"])),date('Y',strtotime($RS->fields["newsdate"]))); $list_news_date = $dayarr[intval(date('w', $list_news_date))] .', '.date('d', $list_news_date) .' '. $montharr[intval(date('n', $list_news_date))].' '.date('Y', $list_news_date); $SQL1 = "SELECT * FROM adm_banner WHERE newsid != '".$x."' ORDER BY newsdate DESC"; $RS1 = $db->Execute($SQL1); $i=0; while (!$RS1->EOF) { $temp_news_id[$i] = $RS1->fields["newsid"]; $temp_news_title[$i] = $RS1->fields["newstitle"]; $temp_news_date[$i] = date("d-m-Y" , strtotime($RS1->fields["newsdate"])); $RS1->MoveNext(); $i++; } //*** Tampilan Detail News if (($RS->fields["newsid"]) != "") { echo ''.$list_news_date.'
'.$list_news_title.'


'.$list_news_desc.'
'; } ?>