So i have a registration script but i got a problem .
When i try to open it says to me he got an error on line 6.
Look at the script :
<?
if(@$_SESSION['security_code']==@$_POST['cap'] and @$_POST['login']<>'' and @$_POST['pass']==@$_POST['pass1'] and @$_POST['pass']<>'' and @$_POST['pass1']<>''){ $account = $_POST['login'];
$password = $_POST['pass'];
$password2 = $_POST['pass1'];
$d=mssql_select_db("ACCOUNT", $db);
$sql = "SELECT * FROM cabal_auth_table WHERE ID='".$account."'";
$res = mssql_query($sql);
$rows=mssql_num_rows($res);
mssql_close();
$error=0;
if ($rows>0) {
echo "<p><center><b style='color: red'>Acest account este deja existent .</b></center></p><br>";
$error = 1;
}
if ((strlen($account)<4 || strlen($account)>16)&& $account!="") {
echo "<p><center><b style='background:gray;'>Accountul trebuie sa curpinda intre 4 si 14 caractere .</b></center></p><br>";
$error = 1;
}
if ((strlen($password)<4 ||strlen($password)>16) && $password!="") {
echo "<p><center><b style='background:gray;'>Parola trebuie sa curpinda intre 4 si 16 caractere .</b></center></p><br>";
$error = 1;
}
if($error<>1){
if (mssql_select_db("ACCOUNT",$db) === false)
{
echo '<p>Nu se poate conecta la baza de date MySQL . Incercati mai taziu .</p>';
exit;
}
$proc = mssql_init('Cabal_tool_registerAccount',$db);
mssql_bind($proc,'@id',$account,SQLVARCHAR);
mssql_bind($proc,'@password',$password,SQLVARCHAR);
mssql_execute($proc);
echo'<p><center><b style="background:gray;">Accountul tau a fost creat cu succes . Acum te poti juca !</b></center></p>';
}
}else{
?>
<p> </p>
<b><center>Cabal Romania pagina de INREGISTRARE !</center></b>
<center><img src="images/ranking/ranking_tab_line.gif" width="80%" height="1" alt="" border="0"></center>
<form name="" action="register.html" method="post">
<center>
<table width='26%' border='0' cellspacing='0' cellpadding='0' class='3'>
<tr>
<td align='center' class='3'><b>ID : </b></td>
<td height="19" colspan="3" align='center' class='3'>
<input name="login" type="text" value=""></td>
</tr>
<tr>
<td align='center' class='3'><b>Parola : </b></td>
<td height="19" colspan="3" align='center' class='3'>
<input name="pass" type="password" value=""></td>
</tr>
<tr>
<td align='center' class='3'><b>Parola 2 : </b></td>
<td height="19" colspan="3" align='center' class='3'>
<input name="pass1" type="password" value=""></td>
</tr>
<tr>
<td width="30%" align='center' class='3'>
<img src="./mod/captcha.php?width=70&height=35&characters=4" />
</td>
<td width="70%" height="19" colspan="3" align='center' class='3'>
<input name="cap" type="text" value="">
</td>
</tr>
<tr>
<td width="30%" align='center' class='3'></td>
<td width="70%" height="19" colspan="3" align='center' class='3'>
<input type="submit" value="Send">
</td>
</tr>
</table>
</center>
</form>
<?}?>
and got one more question . HOW I CAN DELETE THE SECURITY CODE ? ? i need only to register with ID and password to my sql database . :D
So. can someone can help me guys ?:busted_co:winky:


Reply With Quote


