=CURDATE()"; } else if($when=='recent') { $when_filter="AND t.end_date0 && $id<2013000)) { header("Location: ".str_replace('tour.php','tour-archive.php',$_SERVER['REQUEST_URI'])."\n"); exit; } if (!$id) $page="tour"; else if ($_GET['p']) { $page=$_GET['p']; if ($page=="release") $page_name="Press Release"; else if ($page=="results") $page_name="Full Results"; else if ($page=="academy") $page_name="Academy Points"; else if ($page=="oom") $page_name="MJT Order of Merit"; else if ($page=="mt") $page_name="MJT Mini Tour Standings"; else if ($page=="photos") $page_name="Photo Gallery"; else if ($page=="teetimes") $page_name="Tee Times"; } else if ($id==$config['championship']) $page="nat"; else $page="details"; if ($id) { $t=mysqli_fetch_array(mysqliQuery("SELECT s.id as sponsor_id, s.label as sponsor_name, g.address, g.city, g.province, g.postal_code, g.country_cp, g.fax, g.website, p.*, x.label as golf_course, x.description as golf_course_description, l.rounds, t.* FROM tournaments as t LEFT JOIN tournament_sponsors as s ON (t.tournament_sponsors_id=s.id) LEFT JOIN golf_course_extras as x ON (t.golf_course_extras_id=x.id) LEFT JOIN companies as g ON (g.id=x.companies_id) LEFT JOIN tournament_page as p ON (t.id=p.tournaments_id) LEFT JOIN tournament_logistics as l ON (l.tournaments_id=t.id) WHERE t.id='%s' LIMIT 1",$id)); $start_time=strtotime($t['start_date']); $end_time=strtotime($t['end_date']); $year=substr($t['end_date'],0,4); if ($t['start_date']) $date = date('F j',$start_time); if ($t['end_date'] && $t['end_date']!=$t['start_date']) { if (date('m',$start_time)==date('m',$end_time)) $date.="-".date('j',$end_time); else $date.="-".date('F j',$end_time); } if ($date) $date.=', '.$year; $name=$year.' '.$t['title'].' at '.$t['golf_course']; if ($page_name) $title="$page_name - "; $title.=$name; if ($date) $title.=" - $date"; head(); if (mysqli_num_rows(mysqliQuery("SELECT id FROM tournament_entries WHERE tournaments_id = '{$t['id']}' AND place>0 LIMIT 1"))>0) { $results_ready=1; } ?>

700) print ' class="large_img"';?> src="
Warning: Undefined variable $img in /home/tgc1tj2yfgbk/domains/dev.maplejt.com/html/tour.php on line 122
">


Warning: Undefined variable $date in /home/tgc1tj2yfgbk/domains/dev.maplejt.com/html/tour.php on line 127


Warning: Undefined variable $t in /home/tgc1tj2yfgbk/domains/dev.maplejt.com/html/tour.php on line 127

Warning: Trying to access array offset on null in /home/tgc1tj2yfgbk/domains/dev.maplejt.com/html/tour.php on line 127
,
Warning: Undefined variable $t in /home/tgc1tj2yfgbk/domains/dev.maplejt.com/html/tour.php on line 127

Warning: Trying to access array offset on null in /home/tgc1tj2yfgbk/domains/dev.maplejt.com/html/tour.php on line 127

{$t['press_release_headline']}{$t['press_release_body']}"; } else if ($page=="results") { results(); } else if ($page=="academy") { academies(); } else if ($page=="oom" || $page=="mt") { ?> 0) { ?>
Name City Sex Age

Warning: Undefined variable $div in /home/tgc1tj2yfgbk/domains/dev.maplejt.com/html/tour.php on line 149

Warning: Trying to access array offset on null in /home/tgc1tj2yfgbk/domains/dev.maplejt.com/html/tour.php on line 149

Warning: Undefined variable $p in /home/tgc1tj2yfgbk/domains/dev.maplejt.com/html/tour.php on line 153

Warning: Trying to access array offset on null in /home/tgc1tj2yfgbk/domains/dev.maplejt.com/html/tour.php on line 153

Warning: Undefined variable $p in /home/tgc1tj2yfgbk/domains/dev.maplejt.com/html/tour.php on line 153

Warning: Trying to access array offset on null in /home/tgc1tj2yfgbk/domains/dev.maplejt.com/html/tour.php on line 153

Warning: Undefined variable $p in /home/tgc1tj2yfgbk/domains/dev.maplejt.com/html/tour.php on line 154

Warning: Trying to access array offset on null in /home/tgc1tj2yfgbk/domains/dev.maplejt.com/html/tour.php on line 154
,
Warning: Undefined variable $p in /home/tgc1tj2yfgbk/domains/dev.maplejt.com/html/tour.php on line 154

Warning: Trying to access array offset on null in /home/tgc1tj2yfgbk/domains/dev.maplejt.com/html/tour.php on line 154

Warning: Undefined variable $p in /home/tgc1tj2yfgbk/domains/dev.maplejt.com/html/tour.php on line 155

Warning: Trying to access array offset on null in /home/tgc1tj2yfgbk/domains/dev.maplejt.com/html/tour.php on line 155

Fatal error: Uncaught Error: Call to undefined function age() in /home/tgc1tj2yfgbk/domains/dev.maplejt.com/html/tour.php:156 Stack trace: #0 {main} thrown in /home/tgc1tj2yfgbk/domains/dev.maplejt.com/html/tour.php on line 156