//====== OBJECT CODE HERE === The Mindanao Examiner
Share
Mindanao Examiner Headlines
".$headline['news_title']."
"; echo $headline['date_formatted']."

"; // echo news_preview($headline['news_content'], "
"); $number_of_pictures = get_image_number($headline['news_id']); // echo $number_of_pictures; if (picture_present($headline['news_id'])){ // if article contains pictures if (!content_empty($headline['news_content'])){ $content = preview($headline['news_content'])."."; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo "
"; for ($i=0; $i < $number_of_pictures; $i++) { $filename = "gallery/".$headline['news_id']."_".$i.".jpg"; if (file_exists($filename)) { $img_thumb = "gallery/thumb_".$headline['news_id']."_".$i.".jpg"; $img_src = $headline['news_id']."_".$i.".jpg"; if (file_exists($img_thumb)) { $img = $img_thumb; } else { $img = thumb($img_src); } echo ""; break; } } echo " 

".html_entity_decode($content, ENT_QUOTES); echo "

Read More

"; } else { $content = $headline_caption['caption_content']; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo "
"; for ($i=0; $i < $number_of_pictures; $i++) { $filename = "gallery/".$headline['news_id']."_".$i.".jpg"; if (file_exists($filename)) { $img_thumb = "gallery/thumb_".$headline['news_id']."_".$i.".jpg"; $img_src = $headline['news_id']."_".$i.".jpg"; if (file_exists($img_thumb)) { $img = $img_thumb; } else { $img = thumb($img_src); } echo ""; break; } } echo " 

".html_entity_decode($content, ENT_QUOTES); echo "

Read More

"; } } else { $content = news_preview($headline['news_content'], ".
")."."; echo "

".html_entity_decode($content, ENT_QUOTES); echo "

Read More

"; } /* $imaged_news = attach_image($headline['news_content'], $number_of_pictures, $headline['news_id']); echo news_preview($imaged_news, ".
"); // echo "    Read More"; echo "

Full Story"; */ ?>
Mindanao Examiner Other News
'$headline_id' and news_type='n' order by news_datetime desc limit 0,10"); //$get_news = mysql_query("select a.news_id,news_content,news_title,DATE_FORMAT('news_datetime', '%W, %M %d, %Y %r') as //date_formatted, b.* from news a, headline a where a.news_id != b.news_id order by news_datetime desc limit 0,10"); $num_rows = mysql_num_rows($get_news); for ($i=0; $i < $num_rows; $i++) { $news = mysql_fetch_array($get_news); db_connect(); $get_news_caption = mysql_query("select * from caption where news_id='".$news['news_id']."'"); $news_caption = mysql_fetch_array($get_news_caption); echo "".$news['news_title']."
"; echo $news['dated']."

"; // echo news_preview($headline['news_content'], "
"); $number_of_pictures = get_image_number($news['news_id']); // echo $number_of_pictures; if (picture_present($news['news_id'])){ // if article contains pictures if (!content_empty($news['news_content'])){ $content = preview($news['news_content'])."."; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo "
"; /* for ($i=0; $i < $number_of_pictures; $i++) { $filename = "gallery/".$news['news_id']."_".$i.".jpg"; if (file_exists($filename)) { echo ""; break 1; } } */ echo ""; echo " 

".html_entity_decode($content, ENT_QUOTES); echo "

Read More

"; } else { // if content is not empty $content = $news_caption['caption_content']; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo "
"; /* for ($i=0; $i < $number_of_pictures; $i++) { $filename = "gallery/".$news['news_id']."_".$i.".jpg"; if (file_exists($filename)) { echo ""; break 1; } } */ echo ""; echo " 

".html_entity_decode($content, ENT_QUOTES); echo "

Read More

"; } } else { $content = news_preview($news['news_content'], ".
")."."; echo "

".html_entity_decode($content, ENT_QUOTES); echo "

Read More

"; } /* echo $news['news_id']; echo $news['date_formatted']."
"; echo "".$news['news_title']."
"; $number_of_pictures = get_image_number($news['news_id']); // echo $number_of_pictures; $imaged_news = attach_image($news['news_content'], $number_of_pictures, $news['news_id']); echo news_preview($imaged_news, "
"); echo "

Full Story"; */ if ($i <> ($num_rows - 1)) { echo "
"; echo ""; echo ""; echo ""; echo ""; echo "
"; echo "
"; } }// end for loop ?>

'$headline_id' and news_type='f' order by news_datetime desc limit 0,3"); //$get_news = mysql_query("select a.news_id,news_content,news_title,DATE_FORMAT('news_datetime', '%W, %M %d, %Y %r') as //date_formatted, b.* from news a, headline a where a.news_id != b.news_id order by news_datetime desc limit 0,10"); $num_rows = mysql_num_rows($get_news); for ($i=0; $i < $num_rows; $i++) { $news = mysql_fetch_array($get_news); db_connect(); $get_news_caption = mysql_query("select * from caption where news_id='".$news['news_id']."'"); $news_caption = mysql_fetch_array($get_news_caption); echo "".$news['news_title']."
"; echo $news['dated']."

"; // echo news_preview($headline['news_content'], "
"); $number_of_pictures = get_image_number($news['news_id']); // echo $number_of_pictures; if (picture_present($news['news_id'])){ // if article contains pictures if (!content_empty($news['news_content'])){ $content = preview($news['news_content'])."."; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo "
"; /* for ($i=0; $i < $number_of_pictures; $i++) { $filename = "gallery/".$news['news_id']."_".$i.".jpg"; if (file_exists($filename)) { echo ""; break 1; } } */ echo ""; echo " 

".html_entity_decode($content, ENT_QUOTES); echo "

Read More

"; } else { // if content is not empty $content = $news_caption['caption_content']; echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; echo "
"; /* for ($i=0; $i < $number_of_pictures; $i++) { $filename = "gallery/".$news['news_id']."_".$i.".jpg"; if (file_exists($filename)) { echo ""; break 1; } } */ echo ""; echo " 

".html_entity_decode($content, ENT_QUOTES); echo "

Read More

"; } } else { $content = news_preview($news['news_content'], ".
")."."; echo "

".html_entity_decode($content, ENT_QUOTES); echo "

Read More

"; } /* echo $news['news_id']; echo $news['date_formatted']."
"; echo "".$news['news_title']."
"; $number_of_pictures = get_image_number($news['news_id']); // echo $number_of_pictures; $imaged_news = attach_image($news['news_content'], $number_of_pictures, $news['news_id']); echo news_preview($imaged_news, "
"); echo "

Full Story"; */ if ($i <> ($num_rows - 1)) { echo "
"; echo ""; echo ""; echo ""; echo ""; echo "
"; echo "
"; } }// end for loop ?>