Vol. 11, Issue 28 - Saturday, Jan. 28, 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
|
S
|
M
|
T
|
W
|
T
|
F
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
Corrections and
Clarifications
Star-Bulletin staff
The Star-Bulletin strives to make its news report fair and accurate. If you have a question or comment about news coverage, call Editor Frank Bridgewater at (808) 529-4791 or email him at
corrections@starbulletin.com
.
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 City Desk
THIS EDITION
Local News
»
Iwase enters race to challenge Lingle
»
Criticism lands KHON's Moore in hot water
»
High court upholds study for Koa Ridge plan
»
Boulder threatens home
»
Open-info office could face oversight
»
Coco Palms being rebuilt to former splendor
»
Big Island legislators take on coqui fight
»
City chiefs' raises pushed
»
Kauai police chief, union reach truce
»
Free event to introduce girls to tech careers
»
Man arrested in death of Kauai woman, 27
»
Judge rejects third trial of Aiea slaying
»
Man pleads not guilty to Big Isle killing
»
Newswatch, Police/Fire
»
Corrections
»
Whatever Happened To...
»
Obituaries
»
Weather
Features
»
Leader of America's Lutherans speaks here today
»
Second U2 show unconfirmed
»
Barometer of Cool
»
The Hit List
»
Religion Briefs
»
On Faith
Sports
»
Roberts rules
»
Warriors turn it around
»
'Bows roll the dice in Nevada again
»
Simpson off to flying start
»
Toiaivao told to stay away for season
»
'Bows get another shot at alumni
»
Longtime official enjoyed serving
»
Buffanblu bounce back into race
»
Leilehua advances
»
Kepa leads Kalaheo to shutout win
»
Mules move on in playoffs
»
Na Alii commit to D-II school
»
Hawaii Beat
»
Notebook: Turtle Bay Championship
»
Scoreboard
»
TV & Radio
Business
»
Turtle Bay plans draw concern
»
A&B's Doane adding chairman to list of duties
»
Business Briefs
»
Unemployment
»
Market Watch
»
Hawaii Stock Index
»
Wall Street Journal Sunday
»
Dilbert
Editorial
»
Waste system neglect should end at Kualoa
»
Safety demands fixes at Aloha Stadium
»
Letters
Island Images
S-B Photographers
Island Mele
John Berger
View from the Pew
Mary Adamski
Wood Craft
Ben Wood
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