Notice: Undefined variable: db in /usr/local/apache2/htdocs/one/tick/viewer.php on line 13

Warning: mysql_query() expects parameter 2 to be resource, null given in /usr/local/apache2/htdocs/one/tick/viewer.php on line 13

Notice: Undefined variable: tower_html in /usr/local/apache2/htdocs/one/tick/viewer.php on line 56

Notice: Undefined variable: inc_map in /usr/local/apache2/htdocs/one/tick/viewer.php on line 70

Notice: Undefined variable: db in /usr/local/apache2/htdocs/one/tick/viewer.php on line 89

Warning: mysql_query() expects parameter 2 to be resource, null given in /usr/local/apache2/htdocs/one/tick/viewer.php on line 89
<? echo "$title"; ?>
"; echo "$tower_html"; echo "
"; } ?> "; echo ""; } if ($extra_html != "") { echo ""; echo ""; } ?> "; echo ""; echo ""; echo ""; echo ""; } ?> "; echo ""; echo ""; echo ""; echo ""; } ?>
"; } ?>  
  -   
 
Course Profile]"; } if (($popup_link != "") && ($popup_position == "notes")) { echo " ["; echo ""; echo "$popup_link" . ']'; } ?>
'; } ?>
Other races: 
refresh page automatically"; } ?>
most recent first
  all]"; } ?>
  all]"; } ?>
"; echo '
'; echo ""; } ?>
"; echo "$footer_html"; echo "
"; echo "$extra_html"; echo "
LATEST PHOTOS
"; echo '
'; echo ""; $query = "SELECT * FROM pics WHERE stageID = $stageID AND default_flag = 'yes' ORDER BY ID DESC"; $result = mysql_query($query, $db); if ($result) { while ($r = mysql_fetch_array($result)) { $fullname = $r['fullname']; $caption = $r['caption']; $credit = $r['courtesy_of']; echo ""; } mysql_free_result($result); } echo "

${caption}"; if ($credit != "") { echo "
by ${credit}"; } echo "
LATEST VIDEO
"; echo '
'; echo ""; $query = "SELECT * FROM videos WHERE stageID = $stageID AND default_flag = 'yes' ORDER BY ID DESC"; $result = mysql_query($query, $db); if ($result) { while ($r = mysql_fetch_array($result)) { $thumbname = $r['thumbname']; $link = $r['link']; $caption = $r['caption']; $credit = $r['courtesy_of']; echo ""; } mysql_free_result($result); } echo "
"; if ($caption != "") { echo "
${caption}"; } if ($credit != "") { echo " by ${credit}"; } echo "
race viewer powered by One Million Revolutions