Vol. 11, Issue 6 - Friday, January 6, 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)
F
|
S
|
S
|
M
|
T
|
W
|
T
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
GNF_ADBLOCK; } else { print <<< GNF_ADBLOCK GNF_ADBLOCK; } /* SSI INCLUDE */ ?>
Columns
Kauakukalahale
Dictionaries
Poll
Calendar
Movies
Special Packages
MidWeek
Subscriptions
Newsstands
Directory
PDA/Text
StarHeadlines
RSS
Contribute
Occupancy Rates
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 Business Desk
THIS EDITION
Local News
»
Auditor slams state conservation efforts
»
Judge says Hawaiians must settle artifact fight
»
Lingle extends invite to Arroyo for isle visit
»
Isle racial insult suit ends with settlement
»
10 To Watch: Dave Shoji
»
Uranium revelation upsets isle activists
»
State reveals freeway closure specifics
»
Gowadia could face additional charges
»
None seriously injured in emergency landing
»
Isle Marines headed back into danger zone
»
Sincerity, humility were judge's traits
»
Kailua group trying to get property tax rate lowered
»
Astronomers get a breath of fresh air
»
Proposals are sought for bowling alley locale
»
Man jailed 21 months for child pornography
»
Retrial for killing on Kauai to begin
»
Newswatch, Police/Fire
»
Corrections
»
Obituaries
»
Weather
Features
»
Jon Lovitz
»
Tower of Power Surge
»
First Friday night of art and music downtown
»
Island memories game
»
At the movies
»
Follow these steps to keep dogs healthy
»
Nightcrawlers
»
Da Kine
»
Garden
»
Our Picks
»
Crawlspace
Sports
»
'Bows out-team Pack
»
Browne alone in Mercedes lead
»
Sergio brings no worries to Maui
»
A champ's work is never finished
»
ILH Preview: Iolani, Punahou not alone
»
Mustangs stomp Surfriders early
»
Rainbow Wahine don't let Wolf Pack steal 1 away
»
Warriors open with volleyball exhibition
»
Hawaii Beat
»
Golf Notebook
»
Scoreboard
»
TV & Radio
Business
»
Windward Mall to get $23M makeover
»
Hawaii retailers had a Merry Christmas
»
Mera Pharmaceuticals reorganizes into 2 units
»
Business Briefs
»
Hotel Occupancy
»
Market Watch
»
Wall Street Journal Sunday
»
Dilbert
Editorial
»
Property value raises warrant tax changes
»
Convention center needs maintenance
»
Linda Lingle's Philippines Journal
»
Letters
Island Images
S-B Photographers
Ocean Watch
Susan Scott
Corky's Hawaii
Corky Trinidad
Barfly
Jason Genegabus
Editorial Cartoon
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