Vol. 11, Issue 43 - Sunday, February 12, 2006
/
// revised 2005-09-03 require('breaking.config.php'); // CONNECT TO MySQL $link = mysql_connect($mysql_host); if ( ! $link ) die ("Couldn't connect to MySQL"); @mysql_select_db($mysql_database,$link); // DETERMINE PERIOD_DATE, 24 HOURS AGO $today = date('ymdHis'); $p1_query = "select date_add('" . $today . "' , interval -24 hour)"; $p1_result = mysql_query($p1_query); while ($p_row = mysql_fetch_row($p1_result)) { foreach ($p_row as $field) $period_date = $field; } // DETERMINE PERIOD_MONTH, 2 MONTHS AGO $p2_query = "select date_add('" . $today . "' , interval -2 month)"; $p2_result = mysql_query($p2_query); while ($p2_row = mysql_fetch_row($p2_result)) { foreach ($p2_row as $field) $period_month = $field; } // SEARCH NON-URGENT NEWS, 24 HOURS AGO, PRIORITY 0, 3, & 4 $urgent_query = "select * from breaking where date >= '" . $period_date . "' and priority <= '2' and visible='Yes' order by priority, date desc"; $results = mysql_query($urgent_query); $numrows = mysql_num_rows($results); // DISPLAY NON-URGENT NEWS if ($numrows >= 1) { print <<< Urgent_Open
ALERT:
\n Urgent_Open; while ($a_row = mysql_fetch_array($results)) { if ($a_row['priority'] == '0' || $a_row['priority'] == '1') { $head = $a_row['headline']; print <<< Urgent_Bulletin
$head
\n Urgent_Bulletin; } elseif ($a_row['priority'] == '2') { print <<< Urgent_Standard
$a_row[headline]
\n Urgent_Standard; } } print <<< Urgent_Close
\n Urgent_Close; } else { print "\n\n"; } // CLOSE MYSQL CONNECTION mysql_close($link); exit; /* FORMAT FOR URGENT
URGENT:
// URGENT_BULLETIN
$head
// URGENT_STANDARD
$a_row[headline]
*/ ?>
Info
|
PDA/Text
|
Corrections
|
Calendars
|
Movies
Obituaries
|
Vital Stats
|
Weather
|
Surf
Search
StarBulletin.com
Web
Go »
Back Issues
(1996-Present)
S
|
M
|
T
|
W
|
T
|
F
|
S
Who should be the starting quarterback for the UH football team?
Sections
Local News
Features
Sports
Business
Editorial
Travel
(Sunday)
Corrections
GNF_ADBLOCK; } else { print <<< GNF_ADBLOCK GNF_ADBLOCK; } /* SSI INCLUDE */ ?>
Classifieds
Wheels
Island Homes
Jobs
Government Section
Bidding Advantage
Advertise
Columns
Kauakukalahale
Dictionaries
Poll
Calendar
Movies
Special Packages
MidWeek
Subscriptions
Newsstands
Directory
PDA/Text
StarHeadlines
RSS
Contribute
Airfare
Intl. Travel Service
CLICK FOR LARGE
* Aloha Airlines flies to Oakland Orange County, all others to San Francisco and LAX.
BACK TO TOP
© Honolulu Star-Bulletin --
http://archives.starbulletin.com
THIS ARTICLE
PRINTER-FRIENDLY"; /* USE #include virtual="/print/linkgen.inc.php" IN HTML FILES */ ?>
E-mail to Travel
THIS EDITION
Local News
»
New school calendar cuts into summer classes
»
NFL, HPD try to intercept stolen party passes
»
Pro Bowl: Ready, set, jump!
»
UH residents to pay for housing during break
»
State tax crackdowns working by example
»
2nd District race has plenty of Democratic hopefuls
»
Ambulance hurdles multiply
»
Limits on Kakaako developer debated
»
Isle meetings set to discuss care for aging
»
Newswatch, Police/Fire
»
Kokua Line
»
In the Military
»
For Your Benefit
»
What the Heck?
»
Kauakukalahale
»
Vital Statistics
»
Obituaries
»
Corrections
»
Weather
Features
»
Taking big steps to success
»
UH helps disseminate China's 'jingju' art form
»
'Rigoletto' lives up to perennial scrutiny
»
Art for the ages
»
Open-ended story leaves fans hanging
»
Local Bestsellers
»
Da Kine
»
Honolulu Lite
»
Weekly Eater
»
Health Options
»
Yoga For You
Travel
»
The Search for Signs of Hawaiian Life
»
Isle Hopping
»
Hawaii's Back Yard
»
Airfare Rates
Sports
»
Long in the Tooth
»
Supovitz sells NFL
»
'Bows win on road
»
UCI's Gorgen shuts down Rainbows
»
Rainbow Wahine finally seal the deal
»
Kamehameha outclasses Mililani
»
Kaimuki ousts Radford
»
Late layup puts Campbell past Moanalua
»
Hawaii Beat
»
Sidelines
»
Water Ways
»
Scoreboard
»
TV & Radio
Business
»
Only one bean in 10 makes coffee Kona
»
Growing local talent
»
Stock picking simulation program draws 3,052 students
»
Inside Hawaii Inc.: Paul Brussow
»
TheBuzz
»
Digital Slob
»
Secrets to Success
»
Wall Street Journal Sunday
»
Dilbert
Editorial
»
Census ratings unfairly portray Hawaii tax bills
»
America in Asia: 2025
»
On Politics
»
Gathering Place
»
Working Issues
»
Fair Pricing
»
Letters
Kokua Line
June Watanabe
In the Military
Gregg K. Kakesako
What the Heck?
John Heckathorn
Honolulu Lite
Charles Memminger
Health Options
Joannie Dobbs & Alan Titchnal
Yoga For You
Ray Madigan & Shelley Choy
Weekly Eater
Nadine Kam
Hawaii's Back Yard
Cheryl Tsutsumi
Sidelines
Kalani Simpson
Water Ways
Ray Pendleton
TheBuzz
Erika Engle
Digital Slob
Curt Brandao
Secrets to Success
Deborah & John-Paul Micek
On Politics
Richard Borreca
In partnership with
Copyright © 2006 StarBulletin.com. All rights reserved.
News
|
Business
|
Features
|
Sports
|
Editorial
|
Calendars
Subscribe
|
Advertise
|
Classifieds
|
Advanced Search
Info
|
Letter to Editor
|
Feedback
500 Ala Moana Blvd. #7-210, Honolulu, HI 96813 808-529-4747
As featured on