Vol. 11, Issue 1 - Sunday, January 1, 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
BASKETBALL -- PRO
TIME
TV
RADIO
Jazz at Lakers
4:30 p.m.
FSW
Clippers at Trail Blazers
4 p.m.
FSW2
BASKETBALL -- COLLEGE WOMEN
UCLA at Stanford
11 a.m.
FSW2
FOOTBALL -- PRO
Panthers at Falcons
8 a.m.
KHON
1420-AM
Bengals at Chiefs
8 a.m.
KGMB
Redskins at Eagles
11 a.m.
KHON
49ers at Texans
11 a.m.
1420-AM
Rams at Cowboys
3 p.m.
ESPN
1420-AM,
1110-AM,
570-AM
TOMORROW
BASKETBALL -- PRO
TIME
TV
RADIO
Jazz at Lakers
10 a.m.
FSW
BASKETBALL -- COLLEGE
Texas at Memphis
9:30 a.m.
ESPN
Bucknell at Duke
11:30 a.m.
ESPN
Olivet Nazarene at BYUH
7:30 p.m.
97.5-FM
FOOTBALL -- COLLEGE
Alabama vs. Texas Tech
6 a.m.
KHON
1420-AM
Florida vs. Iowa
6 a.m.
ESPN
Louisville vs. Virginia Tech
7:30 a.m.
KHNL
Auburn vs. Wisconsin
8 a.m.
KITV
Notre Dame vs. Ohio State
11:30 a.m.
KITV
1420-AM
Georgia vs. West Virginia
3:30 p.m.
KITV
1420-AM
HOCKEY -- PRO
Lightning at Islanders
2 p.m.
OLN
Stars at Kings
5:30 p.m.
OLN
* Tape delayed
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
»
Mayor wants $40M tax cut
»
New year unites isle families
»
Beloved soldier is remembered for her spiritual fervor
»
10 to Watch: Jack Johnson
»
New Year's mochi bash
»
Burns idle 'ocean warrior'
»
Hawaii Guard advancing the cause
»
Hot line available for isle Medicaid patients
»
2 UH buildings to be renamed
»
Newswatch, Police/Fire
»
Corrections
»
Vital Statistics
»
For Your Benefit
»
Kauakukalahale
»
Obituaries
»
Weather
Features
»
The taiko beat goes on
»
Alternative to 'Geisha' takes a look at stereotypes
»
D&Q: A look ahead at '06
»
Isle Pages
Travel
»
Kyoto: Homeland of a Geisha
»
Search for Signs of Hawaiian Life
»
Maui ranch to host sanctuary for state bird
»
Airfare Rates
Sports
»
All-State Football: Offense
»
All-State Football: Defense
»
All-State Football: Coach of the Year
»
Hawaii Beat
»
Scoreboard
»
TV & Radio
Business
»
Kakaako Waterfront: Following the paper trail
»
Market Watch
»
Wall Street Journal Sunday
»
Dilbert
Editorial
»
2006 filled with hope for good times for all
»
China: Fierce dragon or paper tiger?
»
Treasure hunters of Balad
»
Gathering Place
»
Education Matters
»
Asian Outlook
»
Letters
To Our Readers
Frank Bridgewater
Island Images
S-B Photographers
In the Military
Gregg K. Kakesako
What the Heck?
John Heckathorn
Corky's Hawaii
Corky Trinidad
Health Options
Joannie Dobbs & Alan Titchnal
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
Facts of the Matter
Richard Brill
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