Demonicman
03-03-2007, 01:51 AM
ok this is getting rediculous but im so dumb and all of you are smart...
go to www.kalrith.com/add.php
register
go to www.kalrith.com/account.php
now if you dont see the points then i did something wrong, because when i tested it on wamp, it worked perfectly, posted the points and everything, but NOOO it doesnt work on my actual website -.-
here is the mysql table
CREATE TABLE users (ID MEDIUMINT NOT NULL AUTO_INCREMENT PRIMARY KEY,
username VARCHAR(60), password VARCHAR(60), points INT)
here is the account code (in the mysql table it does say 20 so that is not a problem)
<?php
// Connects to your Database
// Info deleted for mysql logon :)
//checks for login
if(isset($_COOKIE['ID_my_site']))
{
// Collects data from users table
$username = $_COOKIE['ID_my_site'];
$pass = $_COOKIE['Key_my_site'];
$check = mysql_query("SELECT * FROM users WHERE username = '$username'")or die(mysql_error());
while($info = mysql_fetch_array( $check ))
{
//if the cookie has the wrong password, they are taken to the login page
if ($pass != $info['password'])
{ header("Location: login.php");
}
//member area is here
else
{
?>
<?php include("head.php"); ?>
<center>
<table border = 1 bgcolor="black" width="70%">
<tr>
<th bgcolor="black">
<font color="00ff00">
<h2>Your Username: <?php echo $username; ?> </h2><p>
<h2>Your Points: <?php echo $info['points']; ?></h2><br />
Under Construction!
</font>
</th>
</tr>
</table>
</center>
<?php include("foot.php"); ?>
<?php
}
}
}
else
//if not a member is shown this
{
?>
<?php include("head.php"); ?>
<h2><center><font color="white">
You need to be signed in to have an account page!!
</font></center></h2>
<?php include("foot.php"); ?>
<?php
}
?>
dont get me wrong i could care less about my post count on here, i just keep running into problems and so far everyone here has been great about helping out
go to www.kalrith.com/add.php
register
go to www.kalrith.com/account.php
now if you dont see the points then i did something wrong, because when i tested it on wamp, it worked perfectly, posted the points and everything, but NOOO it doesnt work on my actual website -.-
here is the mysql table
CREATE TABLE users (ID MEDIUMINT NOT NULL AUTO_INCREMENT PRIMARY KEY,
username VARCHAR(60), password VARCHAR(60), points INT)
here is the account code (in the mysql table it does say 20 so that is not a problem)
<?php
// Connects to your Database
// Info deleted for mysql logon :)
//checks for login
if(isset($_COOKIE['ID_my_site']))
{
// Collects data from users table
$username = $_COOKIE['ID_my_site'];
$pass = $_COOKIE['Key_my_site'];
$check = mysql_query("SELECT * FROM users WHERE username = '$username'")or die(mysql_error());
while($info = mysql_fetch_array( $check ))
{
//if the cookie has the wrong password, they are taken to the login page
if ($pass != $info['password'])
{ header("Location: login.php");
}
//member area is here
else
{
?>
<?php include("head.php"); ?>
<center>
<table border = 1 bgcolor="black" width="70%">
<tr>
<th bgcolor="black">
<font color="00ff00">
<h2>Your Username: <?php echo $username; ?> </h2><p>
<h2>Your Points: <?php echo $info['points']; ?></h2><br />
Under Construction!
</font>
</th>
</tr>
</table>
</center>
<?php include("foot.php"); ?>
<?php
}
}
}
else
//if not a member is shown this
{
?>
<?php include("head.php"); ?>
<h2><center><font color="white">
You need to be signed in to have an account page!!
</font></center></h2>
<?php include("foot.php"); ?>
<?php
}
?>
dont get me wrong i could care less about my post count on here, i just keep running into problems and so far everyone here has been great about helping out