yup did to instruction but ive no idea where it sent the username o.0 is in c/xampp/htdocs same as appserve i think but is htdocs not www
<title>[conquer_server]</title>
<table width="400" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="black">
<tr>
<form name="form1" method="post" action="checkreg.php">
<td>
<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="white">
<tr>
<td colspan="3"><strong>Choose a username</strong></td>
<div align=center>
<font color=white>[Insert own here]</font>
<br><font color=white>Your password will be set when you login</font>
</tr>
<tr>
<td width="78">Username</td>
<td width="6">:</td>
<td width="294"><input name="regwho" type="text" id="myusername"></td>
</tr>
<tr>
</tr>
<tr>
<td> </td>
<td> </td>
<td><input type="submit" name="Submit" value="Register"></td>
</tr>
<table>
<font color=white>Note:The server is not always online if it shows "Online",if it shows online then the account creation is online and 8/10 the server is online if the account creation is online.</font>
</table>
</DIV></TD></TR></TBODY></TABLE></FORM>
is regitser and checkreg is now
<?php
$username = "[root]";
$password = "[*********]";
$hostname = "localhost";
$dbh = mysql_connect($hostname, $username, $password)
or die("Unable to connect to MySQL Database.");
mysql_select_db("[conquer_server]");
$serveraddress="127.0.0.1";
$serverport=9958;
$regwho=stripslashes($_POST['regwho']);
$regcred=stripslashes($_POST['regcred']);
mysql_real_escape_string($regwho);
mysql_real_escape_string($regcred);
$regc = ($regcred);
$login = mysql_query("SELECT * FROM account WHERE AccountID='$regwho'
OR AccountID='$regwho' AND Password='$regcred'")
or die ('Error: ' . mysql_error());
if ($row = mysql_fetch_array($login)){
echo 'This username is already taken. Please try again with a different username.
<br><br><a href="register.php">Try again</a>';
}
else {
$sql = "INSERT INTO account VALUES ('$_POST[regwho]', '', '0', '1', '')";
mysql_query($sql)
or die('Error: ' . mysql_error());
echo 'Registration successful.';
echo '<BR><BR>';
}
?>
ive directed it as instructed but as i say it doesnt give an error just when i click register the name dissapears as if to say its registered however ive no idea where it sends the name because im unable to log in with a username.
Ive manually created an account for myself to make sure it still works ok but i cant register it from my webpage still even though it opens the register form and seems to do everything correctly