Vol. 11, Issue 19 - Thursday, January 19, 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)
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
Columns
Kauakukalahale
Dictionaries
Poll
Calendar
Movies
Special Packages
MidWeek
Subscriptions
Newsstands
Directory
PDA/Text
StarHeadlines
RSS
Contribute
LEGISLATURE 2006 OPENS:
At yesterday's opening of the state Legislature, the Kauai Filipino Centennial Chorale, directed by Helen Sina, sang in the House chamber.
[
More Inside
]
READER POLL
Who should be the starting quarterback for the UH football team?
»
Cast your vote
ALL STORIES
Local News
»
Legislature: Politicians set stage for surplus debate
»
Taxpayers pitch ideas outside Legislature
»
Cement talks stuck on health benefits
»
Isle soldier buried in Philippines with honors
»
Family will lay soldier to rest in Philippines
»
Rescuer recalls fight to save life
»
70-month sentence for spitting passenger
»
5 police officers' pay questioned
»
Gas prices expected to decline by 6 cents
»
2 UH researchers win national awards
»
Man gets 40-month sentence in child porn case
»
Whale startles tour boat with a surprise tap
»
'Pretty good' earthquake rattles part of Big Isle
»
Newswatch, Police/Fire
»
Corrections
»
Obituaries
»
Weather
Features
»
Original looks from the East
»
Da Kine
»
The Goddess Speaks
Sports
»
UH gangs up on Lions
»
Time in the gym has Sensley shooting straight
»
Quigley here to pick up more cash
»
Krebs going to Oregon State, Estes staying in Hawaii
»
Hawaii Grown: Olomua makes it
»
'twinkle toes' Trigg anticipates tough home crowd
»
Trojans undefeated in OIA West
»
Hawaii Beat
»
Hawaii Grown Notebook
»
Scoreboard
»
TV & Radio
Business
»
Fewer Oahu homes sold last quarter
»
China carrier plans flights to Hawaii
»
Business Briefs
»
Visitor Arrivals
»
Market Watch
»
Wall Street Journal Sunday
»
Dilbert
Editorial
»
Justice system proposals merit legislators' consideration
»
Gathering Place
»
Letters
TOP STORIES
Legislature Opens: Politicians set stage for surplus debate
Lawmakers and the governor will offer competing plans for spending an extra $574 million.
Cement talks stuck on health benefits
Negotiations continue past the midnight strike deadline.
FEATURES » Original looks from the East
Evolving designs let the whole family greet the Lunar year in style.
SPORTS » UH gangs up on Lions
The Warriors use their depth to blow away Penn State in three.
BUSINESS » Fewer Oahu homes sold last quarter
The drops ends an 8-year run of quarterly increases.
EDITORIAL » Justice system proposals merit legislators' consideration
Prosecutors and police chiefs want the Legislature to change statutes regarding law enforcement.
COLUMNS
Kokua Line
June Watanabe
Island Images
S-B Photographers
Corky's Hawaii
Corky Trinidad
Honolulu Lite
Charles Memminger
In the Mix
Jason Genegabus
Just For Kicks
Al Chase
TheBuzz
Erika Engle
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