$blobname doesn't have 'illegal' data, i know that.
Here is the entire file (with the db password replaced)
<?php
$blobname = $HTTP_COOKIE_VARS["BlobWarsName"];
$pass = $HTTP_COOKIE_VARS["BlobWarsPass"];
$hostname = "localhost";
$usernamedb = "cheater";
$passworddb = "replaced";
$dbName = "blobs";
MYSQL_CONNECT($hostname, $usernamedb, $passworddb);
@mysql_select_db("$dbName");
$fp = fopen( "links.txt", 'r' );
$linksfile = fread($fp, filesize("links.txt"));
fclose ( $fp );
$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 {
mysql_query("UPDATE news SET news = 'It Worked' WHERE blobname='$blobname'")
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">'.$linksfile.'</p></td></tr>
<tr><td background="images/mainbg.jpg" class="a" valign="top">
<p align="center"><br />
Success.
</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 :: '.$blobname.'\'s Home</p></td></tr>
</table>
</p>
</div>
</body>
';
}
?>
i get the error when running the script... and no it's just a parse error:
Parse error: parse error in /home/cheater/www/blobs/view/newsdelete.php on line 51