Ok, i have narrowed the problem down to being located in functions.php so i will post that script since it is not that big.
<?php
##### Functions. Made for Elarune by Matt and Josh. ADMINS DO NOT TOUCH!
$user="lunar-forest";
$host="localhost";
$password="wizards";
$database="lunar-forest_-_elarune";
$username = $_COOKIE['user'];
$connection = mysql_connect($host,$user,$password)
or die ("Couldn't connect to the database");
mysql_select_db($database, $connection)
or die ("Couldn't select database");
function membersonly()
{
if (!$_COOKIE['user']) {
echo "<body bgcolor='000000' text='ffffff'>
<center>
<table border=1 width=300>
<tr><td><center><b>Elarune</b></td></tr>
<tr><td><center>Please Login</td></tr>
</table>";
die();
}
}
function outcasts()
{
$result2 = mysql_query("SELECT * FROM members WHERE username='$username'");
$outcast = mysql_fetch_array($result2,MYSQL_ASSOC);
if ($outcast[usertype] == "outcast")
{
echo "<body bgcolor='000000' text='ffffff'>";
exit("You Have been outcasted, get out");
}
}
function pages_links($pages,$link="",$current=0) {
for ($i=1;$i<=min($pages,500);$i++)
if ($current == $i) $return .= "<font color=#000000><b>$i</b></font> ";
else $return .= "<a href='".$link.$i."'>$i</a> ";
return $return;
}
function jail()
{
$query999 = "SELECT * FROM jail WHERE username='$username'";
$result999 = mysql_query($query999)
or die (mysql_error());
$num_rows = mysql_fetch_array($result999);
if ($num_rows[username] != "")
{
die("You're in jail!<br>You're restricted to only certain things
on the website.<br><a href='jail.php'>Back To Jail</a><br>
You'll be released when the admins think you've served your punishment.<br>
to file a complaint you will need to talk to $num_rows[admin]. $num_rows[admin] put you in jail
because of this reason:<br>$num_rows[reason] <br> You will soon
be out of jail don't worry!");
}
}
?>
It stoped working when I added the jail() but when i take it out, it still doesn't work