<?php
$blobname = $HTTP_COOKIE_VARS["BlobWarsName"];
$pass = $HTTP_COOKIE_VARS["BlobWarsPass"];
$hostname = "localhost";
$usernamedb = "cheater";
$passworddb = "mypasswordisheresoiremoveditsoyoudontknowit";
$dbName = "blobs";
MYSQL_CONNECT($hostname, $usernamedb, $passworddb);
@mysql_select_db("$dbName");
$blobinfo = mysql_query("SELECT blobname,level,experience,strength,speed,defense,health,age,weapon,armor,nuggets FROM members WHERE blobname='$blobname'");
$query = mysql_query("SELECT blobname,pass FROM members WHERE blobname='$blobname'");
while( $userinfo = mysql_fetch_array($query) ) {
$usercheck = $userinfo["blobname"];
$passcheck = $userinfo["pass"];
$exists = 1;
}
if ($exists !== 1) {
include ("error_user.txt");
} elseif ($pass !== $passcheck) {
include ("error_pass.txt");
} else {
print '
<head><title>-:[ Blob Wars ]:-</title>
<link rel="STYLESHEET" type="text/css" href="blobs.css" />
</head>
<body bgcolor="#778899">
<div align="center">
<p>
<table cellspacing="0" cellpadding="0" width="450">
<tr height="22"><td background="images/topbg.jpg"><p class="nav" align="left">Blah Blah Links</p></td></tr>
<tr><td background="images/mainbg.jpg" class="a" valign="top">
<p align="center"><br />
<img src="" width="200" height="200" />
</p>
<p align="left">
<b>Your News:</b><br />
You levelled up and have spare Allocation Points! <br />
You were gifted 10,000 nuggets today!<br />
55555 Attacked you and took 666666 Nuggets.<br />
44 Attacked you but lost.<br />
:: Delete All News ::
</p>
<p align="center">
<table class="a" width="380">
<tr><td colspan="2">
<b>Zangys Stats:</b></td></tr>
<tr><td valign="top" width="50%">
Age: '.$blobinfo[age].'<br />
Level: <br />
Experience: <br />
Level-Up At: <br />
<br />
Weapon: <br />
Armor: <br />
</td><td width="50%" valign="top">
Strength: <br />
Defence: <br />
Speed: <br />
Health: <br />
</td></tr></table>
</p>
</td></tr>
<tr><td height="20" background="images/mainbg.jpg" class="a" valign="top"></td></tr>
<tr height="22"><td background="images/bottombg.jpg"><p class="a" align="right">Blob Wars :: Logged In</p></td></tr>
</table>
</p>
</div>
</body>
';
}
?>
Why doesn't it display the character's age variable? it doesn't output anything there... everything else is fine!