Vol. 10, Issue 342 - Thursday, December 8, 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)
T
|
F
|
S
|
S
|
M
|
T
|
W
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 MEN
TIME
TV
RADIO
Wizards at Pacers
3 p.m.
TNT
Rockets at Kings
5:30 p.m.
TNT
BASKETBALL -- COLLEGE MEN
Georgetown at Illinois
4 p.m.
ESPN
Massachusetts at Connecticut
4 p.m.
ESPN2
BASKETBALL -- COLLEGE WOMEN
Hawaii at San Francisco
4:50 p.m.
1420-AM
GOLF
Dunhill Championship*
4 a.m.
GLF
Target World Challenge*
3 p.m.
USA
HOCKEY
Mighty Ducks at Sabres
2 p.m.
FSW2
Hurricanes at Kings
5:30 p.m.
FSW
TALK SHOWS
Johnny Miro/Super Bowl Wayne
5 a.m.
690-AM
The Bobby Curran Show
6:05 a.m.
1420-AM
The Sports Bar
4:05 p.m.
1420-AM
TOMORROW
BASKETBALL -- PRO MEN
TIME
TV
RADIO
Nets at Cavaliers
2:30 p.m.
ESPN
Knicks at Suns
5 p.m.
ESPN
BASKETBALL -- COLLEGE MEN
BYU-Hawaii at Alaska-Fairbanks
6 p.m.
97.5-FM
FOOTBALL -- COLLEGE
Northern Iowa at Texas State
3 p.m.
ESPN2
GOLF
Target World Challenge*
3 p.m.
USA
SOCCER -- COLLGE MEN
Maryland vs. SMU
11 a.m.
ESPN2
VOLLEYBALL -- COLLEGE WOMEN
Hawaii vs. Missouri
11 a.m.
KFVE
1420-AM
Hawaii vs. Missouri*
7 p.m.
KFVE
TALK SHOWS
Johnny Miro/Super Bowl Wayne
5 a.m.
690-AM
The Bobby Curran Show
6:05 a.m.
1420-AM
On Point
9:05 am.
1420-AM
The Sports Bar
4:05 p.m.
1420-AM
HTS Radio Show
7 p.m.
1420-AM
* 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
»
Waimea Valley deal rejected
»
Company cuts back plans for Kakaako
»
Marathoner Shorter recalls '72 terrorism
»
Pearl Harbor - Generation's sacrifice honored
»
45 quakes rock Loihi over 12 hours
»
Ceremony honors Joyeux
»
Weak heart made Ho candidate for therapy
»
Surfboard prices shoot up
»
Hawaii gas prices headed up after 8-week slide
»
High court upholds robbery conviction
»
State far outpaces feds in embezzling sentence
»
Newswatch, Police/Fire
»
Obituaries
»
Corrections
»
Weather
Features
»
Glamour girls
»
Luscious lashes make stylish eyes
»
Local musicians view Grammys as mixed blessing
»
Slack-key rules local nominations
»
'Female' plant joins winsome comic cast
»
Keiki Kalikimaka by Aaron Wong
»
Da Kine
Sports
»
Arnott content to contribute with new role
»
Senior Bowl East - stars will go as hard as allowed
»
Senior Bowl West - Discipline doesn't stop
»
Hawaii Grown - Title shot
»
Hawaii Beat
»
Notebook: College Football
»
Scoreboard
»
TV & Radio
Business
»
Señor Frog's Restaurant
»
Business Briefs
»
Market Watch
»
Wall Street Journal Sunday
»
Dilbert
Editorial
»
Kawainui dispute shows need to revamp government duties
»
Medicare questions and answers
»
Letters
»
Student Union
Kokua Line
June Watanabe
Corky's Hawaii
Corky Trinidad
Honolulu Lite
Charles Memminger
In the Mix
Jason Genegabus
Just For Kicks
Al Chase
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