• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Problem with my PHP code and I cant find it.

skreet

Senior member
if ($_COOKIE['user']!="") {

$conn = mysql_connect($mysql_host, $mysql_uname, $mysql_pass);
mysql_select_db($mysql_db);

$result = mysql_query("select password from users where id = '{$_COOKIE['user']}'");

$total = mysql_num_rows($result);
$data = mysql_fetch_row($result);
$realpw = $data[0];

if ($COOKIE['pass'] == $realpw) {
if($debug==1) echo "Password Match";
} else {
if($debug==1) echo "Password Does Not Match ({$realpw}, {$_COOKIE['pass']}) ({$total})";
header("Location: login.php?from=main.php&ha=yes"); //ha = hack attempt?
}
} else {
if($debug==1) echo "No Cookie";
header("Location: login.php?from=main.php");
}


}

Password Does Not Match (d41d8cd98f00b204e9800998ecf8427e, d41d8cd98f00b204e9800998ecf8427e) (1)

...Help?
 
Back
Top