Can not connect the server FlintNet
calendar
query($sql_show_calendar); $data_show_calendar = $dbadmin->fetch_array($result_show_calendar); if(!isset($_GET['page'])) $total_per_page = 12; else $total_per_page = $_GET['page']; $start_from = (($page-1)* $total_per_page); $loop_controller_global = $start_from; $end_at = $start_from + $total_per_page ; $total_data = sizeof($data_show_calendar); //echo $total_data; $tatal_page = floor($total_data/$total_per_page); $total_left_side = ceil($total_per_page/3); $total_middle_side = ceil($total_per_page/3); $total_right_side = $total_per_page - ($total_middle_side + $total_left_side); echo '
'; echo ''.$data_show_calendar[0]['calendar_year'].''; for($i=0;$i<$total_left_side & $loop_controller_global<$total_data; $i++) { $array_id = $start_from + $i; $loop_controller_global++; echo '
 '.$data_show_calendar[$array_id]['date_range'].' | '.$data_show_calendar[$array_id]['calender_content'].'
'; } echo '
'; if($loop_controller_global<$total_data) { echo '
'; for($i=0;$i<$total_middle_side & $loop_controller_global<$total_data; $i++) { $loop_controller_global++; $array_id = $start_from + $total_left_side + $i; //echo $array_id; echo '
 '.$data_show_calendar[$array_id]['date_range'].' | '.$data_show_calendar[$array_id]['calender_content'].'
'; } echo '
'; } if($loop_controller_global<$total_data) { echo '
'; for($i=0;$i<$total_right_side & $loop_controller_global<$total_data; $i++) { $loop_controller_global++; $array_id = $start_from + $total_middle_side + $total_left_side + $i; //echo $array_id; echo '
 '.$data_show_calendar[$array_id]['date_range'].' | '.$data_show_calendar[$array_id]['calender_content'].'
'; } echo '
'; } ?>