= 11 && substr($remaddr, 0, 11) == '204.130.161') ? '204.130.161.181:8000' : '66.178.151.114:8000'; $offset = date('O'); $lat = 42.44; $lng = -123.33; $zen = 90; $ofs = date('Z') / 3600; $sunrise_ts = date_sunrise(time(), SUNFUNCS_RET_TIMESTAMP, $lat, $lng, $zen, $ofs); $sunset_ts = date_sunset(time(), SUNFUNCS_RET_TIMESTAMP, $lat, $lng, $zen, $ofs); $now_ts = date('U'); $sunrise = date('g:i A', $sunrise_ts); $sunset = date('g:i A', $sunset_ts); $today = date('l, F j, Y'); $mysqli = new mysqli(DB_HOST, DB_USER, DB_PASSWORD, DB_DATABASE); $talkback = array(); $query = 'select id, mdate, username, comments from sys_talkback where story_id = 9 and approved = \'1\' and mdate > \'' . date('Y-m-d', strtotime('-180 days')) . '\' order by mdate desc limit 30'; if (!($res = $mysqli->query($query))) printf("MySQL Error #%d, %s.\n", $mysqli->errno, $mysqli->error); while ($row = $res->fetch_assoc()) { extract($row); list ($date, $time) = explode(' ', $mdate); $disp_date = date('n/j/Y g:i:s a', strtotime($date . ' ' . $time)); $talkback[$id] = array($disp_date, $username, $comments); } $mysqli->close(); ?>
|
Holiday Plaza Cam
|
The following comments are from the readers of thedailycourier.com. In no way do they represent the views of The Daily Courier or thedailycourier.com. Comments will not be posted immediately, but will be approved and post periodically throughout the day. Thank you for your participation.
Thank you for your comments. They appear below. Please be aware that rude, off-topic or otherwise immaterial comments will be removed by our moderator.
$talk_array) { list ($date, $name, $cmnt) = $talk_array; echo '' . $name . ' ' . $date . '
' . htmlentities($cmnt) . '