— ADVERTISEMENT —
Vol. 10, Issue 276 - Monday, Oct. 03, 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)
M
|
T
|
W
|
T
|
F
|
S
|
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
Television & Radio
Star-Bulletin Staff
TODAY
FOOTBALL -- PRO
TIME
TV
RADIO
Packers at Panthers
3 p.m.
1420-AM,
1110-AM
570-AM
Packers at Panthers*
6:30 p.m.
KITV
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
TOMORROW
BASEBALL -- MLB DIVISIONAL SERIES
TIME
TV
RADIO
Padres at Cardinals
7 a.m.
ESPN
Red Sox at White Sox
10 a.m.
ESPN
Yankees at Angels
2 p.m.
KHON
FOOTBALL -- COLLEGE
Troy State at North Texas
1:30 p.m.
ESPN2
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
3:05 p.m.
1420-AM
Call the Coach with June Jones
6:30 p.m.
1420-AM
Inside OC16 Sports
6:30 p.m.
OC16
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
»
Jaywalking alarms parents
»
Sunnier days are forecast as weather systems shift
»
Nuuanu development is opposed
»
Man shoots self in head at hotel
»
Research furthers fertility work
»
Sea-salt farm spices up Molokai's dull economy
»
Kealakehe park plan gathers steam
»
Newswatch, Police/Fire
»
Obituaries
»
Corrections
»
Whatever Happened To...
»
Weekend Scene
»
Weather
Features
»
Capturing the moment
»
Hawaii's Schools: Le Jardin Academy
»
Hawaiian Folklore: Capturing a Tiger Shark
»
Varied voices from the ridge
»
Da Kine
Sports
»
UH special teams without a coordinator
»
Scott, Rogers finish strong
»
Red Raiders return to the top
»
Hawaii Beat
»
Scoreboard
»
TV & Radio
Business
»
State begins used car policy
»
Business Briefs
»
Neighborhoods
»
Tech View
»
Dilbert
Editorial
»
Gas prices warrant FTC investigation
»
Limit military role as first responders
»
Letters
»
Gathering Place
Kokua Line
June Watanabe
Island Images
S-B Photographers
Corky's Hawaii
Corky Trinidad
On the Scene
John Berger
Cel Shaded
Jason Yadao
Enjoying Your Work
Richard Brislin
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 —