Jump to content
GIGN Forum

Nick Register


JAKuT
 Share

Recommended Posts

Palidziet, kas par vainu??

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in c:\appserv\www\nick.php on line 25

<Center><form name="LOGIN" action="nick.php" method="post">
<table class="table" border="0">
<tr><td align="left">Ник: </td> <td><input size="40" style="width:124px" maxlength="64" name="playername" type="text" value="" /></td></tr>
<tr><td align="left">Пароль (пароль который будете водить на сервере): </td> <td><input size="40" style="width:124px" maxlength="64" name="pass" type="password" value="" /></td></tr>
<tr><td align="left">Пароль (еше раз): </td> <td><input size="40" style="width:124px" maxlength="64" name="pw_coniform" type="password" value="" /></td></tr>
<tr><td align="left">Код (который получиле в SmS): </td> <td><input size="40" style="width:124px" maxlength="64" type="txt" name="code" value="" /></td></tr>
<tr>
<td><input type="submit" name="submit1" value="Зарегистрировать" /></td>
</tr>
</table>
<?php
$nikreg = $_GET['nikreg'];
$kodinsh = $_POST['code'];
$kods = 23;
$playername = $_POST['playername'];
$nick = $_POST['playername'];
$pass = $_POST['pass'];
$pass2 = $_POST['pw_coniform'];
$access = "z"; // Sheit ievadam accesa flagus.
$flags = "a"; 
$nickname = "regnick";
$ip = $_SERVER['REMOTE_ADDR'];
mysql_connect('localhost','root','');
mysql_select_db('counterstrike'); 
$result = mysql_fetch_assoc(mysql_query("SELECT code FROM codes WHERE code = '$kodinsh'"));   [b]Line 25[/b]

Edited by JAKuT
Link to comment
Share on other sites

Tev vispār tāda db, codes, eksistē??

Edited by duplets
Link to comment
Share on other sites

Fū nevis db, bet tabula!

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...