— ADVERTISEMENT —
Vol. 10, Issue 275 - Sunday, October 2, 2005
/
// 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
Sections
Local News
Features
Sports
Business
Editorial
Travel
(Sunday)
Corrections
Classifieds
Wheels
Island Homes
Careers
Bidding Advantage
Advertise
Columns
Kauakukalahale
Dictionaries
Poll
Calendar
Movies
Special Packages
MidWeek
Subscriptions
Newsstands
Directory
PDA/Text
StarHeadlines
RSS
Contribute
Corrections and
clarifications
The Honolulu 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 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
»
Mayor hopes to rekindle ties in Japan
»
Legendary runner casts shadow here
»
Lingle suffers in picking Harbin
»
'10th planet' Xena has moon
»
Rainfall unable to drown out events
»
If they ban it, who will come?
»
Gulf storm can aid tsunami mitigation
»
Club 100 getting back in touch
»
Land grant to aid endangered species
»
Company hopes to restart Big Isle power plant
»
CNN's Dr. Gupta will address health forum
»
Newswatch, Police/Fire
»
Obituaries
»
Corrections
»
Vital Statistics
»
For Your Benefit
»
Kauakukalahale
»
Weather
Features
»
Labor of love
»
New owners are well-suited
»
Chamber music!
»
D&Q: Reprinting recaptures perfection of cartoonist's line
»
The elegance of celadon
»
Local bestsellers
»
Da Kine: Restaurants, On Stage
Travel
»
The delights of Valencia
»
X Marks: Hawaii's first artesian well
»
Signs of Hawaiian Life
»
Isle Hopping
»
Airfare Rates
Sports
»
Boise still special
»
Manners fills stat sheet
»
Colledge, Scandrick make a special team
»
Anderson helps Idaho past Utah State
»
Wahine dig themselves out of deep hole
»
Bad day on the beach
»
Wahine drop another on the road
»
UH job draws vast response
»
Na Alii overcome penalties
»
Weather knocks out BIIF's whole weekend
»
Hawaii Beat
»
Notebook: UH Football
»
Scoreboard
»
TV & Radio
Business
»
At your service: Food distributors play key role
»
Inside Hawaii Inc.: Patti Niemeyer of Maui Clothing Co.
»
Dilbert
Editorial
»
Restricting school formula weakens its purpose
»
Oil and the economy
»
Living in the cone of uncertainty
»
Letters
»
Education Matters
»
On State Business
»
In My View
Kokua Line
June Watanabe
Island Images
S-B Photographers
In the Military
Gregg K. Kakesako
What the Heck?
John Heckathorn
Corky's Hawaii
Corky Trinidad
Honolulu Lite
Charles Memminger
Yoga for You
Ray Madigan & Shelley Choy
Hawaii's Back Yard
Cheryl Tsutsumi
Sidelines
Kalani Simpson
Water Ways
Ray Pendleton
Digital Slob
Curt Brandao
Secrets to Success
Deborah & John-Paul Micek
Facts of the Matter
Richard Brill
On Politics
Richard Borreca
Corky's Editorial
Corky Trinidad
In partnership with
Copyright © 2005 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
— ADVERTISEMENTS —
— ADVERTISEMENTS —
— ADVERTISEMENT —