Vol. 11, Issue 8 - Sunday, January 8, 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
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
Television & Radio
Star-Bulletin Staff
TODAY
BASEBALL -- AJA
TIME
TV
RADIO
Pearl City vs. Mililani
3 p.m.
1420-AM
BASKETBALL -- COLLEGE MEN
Michigan State at Wisconsin
8:30 a.m.
KGMB
Boston College at Georgia Tech
12:30 p.m.
FSW
Duke at Wake Forest
3 p.m.
FSW
BASKETBALL -- COLLEGE WOMEN
Tulsa at Tulane
10 a.m.
ESPN2
Arizona at USC
10 a.m.
FSW2
FOOTBALL -- PRO
Panthers at Giants
8 a.m.
KHON
1420-AM,
11 a.m.
1110-AM,
Steelers at Bengals
11:30 a.m.
KGMB
1420-AM,
11:45 a.m.
1110-AM
GOLF
Mercedes Championships
2 p.m.
ESPN
TOMORROW
BASKETBALL -- PRO
TIME
TV
RADIO
Pacers at Lakers
5:30 p.m.
FSW
BASKETBALL -- COLLEGE MEN
Cincinnati at Connecticut
2 p.m.
ESPN
Texas at Iowa State
4 p.m.
ESPN
Gonzaga at Santa Clara
7 p.m.
ESPN2
BASKETBALL -- COLLEGE WOMEN
Oklahoma at Ohio State
2 p.m.
ESPN2
HOCKEY -- PRO
Blues at Avalanche
4 p.m.
OLN
Kings at Mighty Ducks
5:30 p.m.
FSW2
TALK SHOWS
Johnny Miro/Super Bowl Wayne
5 a.m.
690-AM
The Bobby Curran Show
6:05 a.m.
1420-AM
Mixed Martial Arts Show
9:05 a.m.
1420-AM
The Sports Bar
3:05 p.m.
1420-AM
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 Sports
THIS EDITION
Local News
»
Home improvement
»
Second victim in sky-diving crash dies
»
Isle schools invest in future of Philippines
»
10 To Watch: Jonathan Ornstein
»
Pending land sale stirs Kahuku protest
»
Family Tree: Market is one-stop shop
»
Aviator recalls Iraqi sandstorm scare
»
Workers have ideas on goal of Legislature
»
Minorities key in Iraq, Obama says
»
Symphony: Musical epitaphs evoke Japan
»
Newswatch, Police/Fire
»
Corrections
»
Vital Statistics
»
For Your Benefit
»
Kauakukalahale
»
Obituaries
»
Weather
Features
»
Diamond Glow
»
POP! Goes the ferret
»
Stories worthy of Takahashi's name
»
Contemporary visions
»
Local Bestsellers
»
Restaurant Report
Travel
»
The Search for Signs of Hawaiian Life
»
Isle Hopping
»
Airfare Rates
Sports
»
Appleby nears 3-peat
»
Glover's drive earns car
»
Hakala, Warriors subdue Royals
»
Gibson finished for year
»
Ostrowski's jumper saves Punahou
»
Bigger programs woo Fehoko at all-star game
»
Hawaii Beat
»
Notebook: Mercedes Championships
»
Scoreboard
»
TV & Radio
Business
»
Home Suite Home
»
Engineering a broader outlook for society
»
Wall Street Journal Sunday
»
Dilbert
Editorial
»
Land department overhaul would be beneficial
»
Gov. Lingle's Philippines Journal
»
Gathering Place: Kakaako
»
In My Opinion: Misleading ads
»
Gathering Place: Waikiki street life
»
Letters
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
Yoga For You
Ray Madigan & Shelley Choy
Weekly Eater
Nadine Kam
Hawaii's Back Yard
Cheryl Tsutsumi
Water Ways
Ray Pendleton
TheBuzz
Erika Engle
Digital Slob
Curt Brandao
Secrets to Success
Deborah & John-Paul Micek
On Politics
Richard Borreca
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