Jump to content

echo not displaying and updating database not working


doublea2k7

Recommended Posts

why isn't my echo showing and my database updating

 

<?
include "config2.php";
?>

<!doctype html public "-//w3c//dtd html 3.2//en">

<html>

<head>
</head>

<body>
<?
$name=mysql_real_escape_string($name);

if ($rec=mysql_fetch_array(mysql_query("SELECT name FROM accounts WHERE name='$name'"))) {
    if (($rec['name']==$name)) {
if(mysql_query("update accounts set loggedin='2' WHERE name='$name'")){
            echo "<font face='Verdana' size='12' ><center>OK <br> Your account has been fix try to log in the game now!</font></center>";
}
}
}

?> 

</body>

</html>

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.