Help with server website registration
This is a discussion on Help with server website registration within the WoW Private Server Info & Help forum part of the WoW forum category; i made a private server,followed a tut on how to make it public with a website.and the site works fine. ...
-
Help with server website registration
i made a private server,followed a tut on how to make it public with a website.and the site works fine. but at the bottom it says
Access denied for user 'root'@'localhost' (using password: YES)
so i shutdown and restarted mysql, and i still got the same message.
and it wont let me make accounts
-
-
post your config file for you website, ill do the best i can to help you...
-
-
well i have a config and a register file
Config:
<?php
$db="antrix";
$dbuser="root";
$dbpass="";
$dbhost="localhost";
?>
(i removed the password)
Register:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>WoW Thats HawT</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link href="style.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="container">
<div id="headers">
<div id="nav">
<ul><li><a href="index.html"></a></li>  
<li><a href=".html"</a></li>
           <li><a href="stats.xml">Server Status</a></li>
</ul>
<ul>
</ul>
</div>
</div>
<div id="content1">
<div id="text1">
<div class="heading"></div>
<br />
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>Account Registration Page</title>
<meta http-equiv="Pragma" content="no-cache"/>
<meta http-equiv="Cache-Control" content="no-cache"/>
<style type="text/css" media="screen">@import url(secondary_stats.css);</style>
<!--[if lt IE 7.]>
<script defer type="text/javascript" src="pngfix.js"></script>
<![endif]-->
</head>
<body>
<center>
<div class="logo"></div>
<div style="width:300px">
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST">
<table width="100%" border="0" cellspacing="1" cellpadding="3">
<tr class="head"><th colspan="2"><div class="heading"><br><br>Antrix Account Registration Page</div><br><br></th></tr>
<tr>
<th>Username: </th><td align="center"><input type="text" name="login" size="30" maxlength="16"/></td>
</tr>
<tr>
<th>Password: </th><td align="center"><input type="password" name="password" size="30" maxlength="16"/></td>
</tr>
<tr>
<th>Retype Password: </th><td align="center"><input type="password" name="retypepass" size="30" maxlength="16"/></td>
</tr>
<tr>
<th>E-mail: </th><td align="center"><input type="text" name="email" size="30" maxlength="30"/></td>
</tr>
<!--Added by Jerq--Modified by ElderGod>
<th>Account Type:</th><td align="center">
<select name="tbc" type="select">
<option value="0">Normal WoW</option>
<option selected value="8">Burning Crusade</option>
</select><br><br>
<input type="reset" name="reset" value="Reset"/>
<input type="submit" name="create" value="Create"/></td>
<!--Added By Jerq--Modified by ElderGod>
</table>
</form>
<?php
include('config.php');
$query = @mysql_connect($dbhost,$dbuser,$dbpass) or die(mysql_error());
mysql_query($query);
mysql_select_db($db) or die (mysql_error());
$login=$_POST['login'];
$password=$_POST['password'];
$email=$_POST['email'];
$retype_pass=$_POST['retypepass'];
$tbc=$_POST['tbc'];
//$retypelen is the alternate of $retype_pass which i will use in the following syntax to check for field lenght (if the field is empty).Same for the others.
$loginlen=strlen($login);
$passwordlen=strlen($password);
$emaillen=strlen($email);
$retypelen=strlen($retype_pass);
if ($password!==$retype_pass or $passwordlen!==$retypelen)
{
print '<font color="red" size="2"><b>The two passwords do not match.Please retype passwords..</b></font>';
}
else{
IF ($loginlen > 0 && $passwordlen > 0 && $emaillen > 0 && $retypelen > 0)
{
$query = "insert into accounts(login,password,lastip,flags) VALUES ('".$login."','".$password."','".$_SERVER['REMOTE_ADDR']."','".$tbc."')";
mysql_query($query);
print '<font color="green" size="2"><b>Account created successfuly!</b></font>';
}
else
{
IF ($loginlen = 0 or $passwordlen = 0 or $emaillen = 0 or $retypelen = 0)
{
print '<font color="red" size="2"><b>Please fill in all the fields! One or more fields are not filled...</b></font>';
};
};
};
$result = mysql_query("SELECT * FROM accounts");
$num_rows = mysql_num_rows($result);
print "<br><br><font color='red' size='2'><b><i>There are curently <font size='3' color='blue'>- $num_rows -</font> registered accounts in the server database .\n</i></b></font>";
?>
</div>
<div class="footer">
</div>
</center>
</body>
</html>
</div>
</div>
<div id="pagebottom">
<div id="left">
<div id="text2">
<img src="images/cap-community-news.gif" alt="Community News" />
<p><div class="heading2">Hi And Welcome To Our Server iLiDaRi ReAlm</div></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
</div>
</div>
<div id="right">
<div class="heading2">QUICK LINKS</div>
<div id="quicklinks">
<ul>
<li><a href="wow.allakhazam.com/">Allakhazam</a></li>
<li><a href="http://www.thottbot.com">Thottbot</a></li>
<li><a href="http://www.wowhead.com">Wowhead</a></li>
</ul>
</div>
<div class="heading2">SCREENSHOT OF THE DAY</div>
<img src="images/screenshot.jpg" alt="Screenshot" /> <br />
</div>
</div>
</div>
</body>
</html>
-
-
hmmm, everything looks good, i guess you would need to make sure that the password is 100% perfect.
-
-
when i go to wamp>mysql>mysql console and i type in the password it says access denied
-
-
wamp? that is probably why you are getting these errors, try using Ascent's Repack, It Will Help ALOT.
-
-
i agree with Stroup, Try Ascent's Repack
-
wamp is the web server,its not an ascent repack
-
-

Originally Posted by
DrAGoN0SaURuS
wamp is the web server,its not an ascent repack
We know.
Use the website in ascents repack!
Similar Threads
-
By Milamber in forum Mu Archives
Replies: 183
Last Post: 04-16-2009, 08:53 AM
-
By Milamber in forum Mu Archives
Replies: 327
Last Post: 04-11-2009, 09:06 AM
-
By Ryan in forum WoW Private Server Info & Help
Replies: 8
Last Post: 11-06-2007, 11:46 PM
-
By Havok in forum WoW Private Server Info & Help
Replies: 18
Last Post: 09-01-2007, 10:08 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules