Help - Search - Members - Calendar
Full Version: Messed Up Website - Please Help!
Invision Power Services > Community Forums > Community Web Design and Coding
austinforever
Hey. A programmer designed my website for me but he is away at the moment so cannot fix whatever mistake I made. Basically my website is www.gamingextreme.net and as you can see, a white page. Other pages of the site work fine, Game Dates, but whatever I did to the index file messed it up. This is the code for the index.php file. The only thing I tried to change in here was the text I have highlighted in bold. Im sure I changed it back to what it was but still it doesnt seem to be working.

<?php session_start(); include 'class/constants.php'; include 'class/htmlfile.php'; include 'class/mysql.php'; //Initialize Variables $html = new HtmlFile; $mysql = new MySQL($DB_HOST, $DB_USER, $DB_PASS, $DB_Database); $body = ""; $msg = ""; if (isset($_GET['msg']) ) { if ($_GET['msg'] == 1) $msg = "<script>alert('Invalid username or password!')</script>"; else if ($_GET['msg'] == 2) $msg = ""; } //Read templates //$body .= $html->evalHtml($TEMPLATE_PATH.'form_login.htm', '$msg', 0); //--------------------------------------------------------------------------------------- //*********************Load Page************************* include 'left_menu.php'; //Main Body Content $width = "539"; $title = "GX headlines"; $content = $mysql->get_headlines(3); $body_headline = $html->evalHtml($TEMPLATE_PATH.'table_default.html', '$width,$title,$content', 0); $title = "Upcoming tournaments"; $t1 = "Another tournament is coming soon..."; $t2 = "Another tournament is coming soon..."; $t3 = "Another tournament is coming soon..."; $t4 = "Another tournament is coming soon..."; $rs = $mysql->select("SELECT t.id as tid, g.game, DATE_FORMAT(t.start_time, '%m/%d/%Y %h:%i %p') as start_time FROM gamesite_tournament t, gamesite_game g WHERE t.game_id = g.id AND t.state = '0' ORDER BY t.start_time LIMIT 4"); if (isset($rs[0])) $t1 = "<h3>* TOURNAMENT *</h3><h2>" . $rs[0]['game'] . "</h2><br/><small>" . $rs[0]['start_time'] . "<p><a class=\"awhite\" href=\"gamedates.php?act=tournaments&joinid=" . $rs[0]['tid'] . "\">Event Details</a></small>"; if (isset($rs[1])) $t2 = "<h3>* TOURNAMENT *</h3><h2>" . $rs[1]['game'] . "</h2><br/><small>" . $rs[1]['start_time'] . "<p><a class=\"awhite\" href=\"gamedates.php?act=tournaments&joinid=" . $rs[1]['tid'] . "\">Event Details</a></small>"; if (isset($rs[2])) $t3 = "<h3>* TOURNAMENT *</h3><h2>" . $rs[2]['game'] . "</h2><br/><small>" . $rs[2]['start_time'] . "<p><a class=\"awhite\" href=\"gamedates.php?act=tournaments&joinid=" . $rs[2]['tid'] . "\">Event Details</a></small>"; if (isset($rs[3])) $t4 = "<h3>* TOURNAMENT *</h3><h2>" . $rs[3]['game'] . "</h2><br/><small>" . $rs[3]['start_time'] . "<p><a class=\"awhite\" href=\"gamedates.php?act=tournaments&joinid=" . $rs[3]['tid'] . "\">Event Details</a></small>"; $content = $html->evalHtml($TEMPLATE_PATH.'content_upcoming.html', '$t1,$t2,$t3,$t4', 0); $body_upcoming = $html->evalHtml($TEMPLATE_PATH.'table_default.html', '$width,$title,$content', 0); $title = "GX Champions"; $content = $html->evalHtml($TEMPLATE_PATH.'content_chat.html', '', 0); $body_champions = $html->evalHtml($TEMPLATE_PATH.'table_default.html', '$width,$title,$content', 0); $out .= $html->evalHtml($TEMPLATE_PATH.'body_index.html', '$body_admin,$body_mod,$body_community,$body_account,$body_point,$body_headline,$body_upcoming,$body_champions', 0); //Bottom $out .= $html->evalHtml($TEMPLATE_PATH.'bottom.html', '', 0); //Output templates echo $out; exit; ?>

Thanks in advance to anyone who can help me
Starnox
Looks fine to me...
GRANAT
QUOTE(Starnox @ Jul 31 2006, 04:46 PM) *
Looks fine to me...


Confirmed.
Brandon C
Looks fine to me as well.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.