JAKuT Posted June 28, 2008 Report Share Posted June 28, 2008 (edited) 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 June 28, 2008 by JAKuT Link to comment Share on other sites More sharing options...
JAKuT Posted June 29, 2008 Author Report Share Posted June 29, 2008 Nu kads palidzes? Link to comment Share on other sites More sharing options...
duplets Posted June 29, 2008 Report Share Posted June 29, 2008 (edited) Tev vispār tāda db, codes, eksistē?? Edited June 29, 2008 by duplets Link to comment Share on other sites More sharing options...
JAKuT Posted June 29, 2008 Author Report Share Posted June 29, 2008 (edited) Nu man ir Counterstrike db.. bet tieshi codes, nav... Edited June 29, 2008 by JAKuT Link to comment Share on other sites More sharing options...
duplets Posted June 29, 2008 Report Share Posted June 29, 2008 Fū nevis db, bet tabula! Link to comment Share on other sites More sharing options...
Norek Posted June 29, 2008 Report Share Posted June 29, 2008 Priekš kam Tev vajag izselektēt vērtību, kuru Tu jau zini ? Link to comment Share on other sites More sharing options...
JAKuT Posted June 29, 2008 Author Report Share Posted June 29, 2008 Es vsp, godigi sakot nesaprotu par ko juus runajat, tabulas nav.. kads var iedot? jo es so skriptu noladeju, bet tur neka nebija, kaa tikai sitais skripts :/ Link to comment Share on other sites More sharing options...
overmind Posted June 29, 2008 Report Share Posted June 29, 2008 (edited) Ai, gribēju jau kautko uzrakstīt, bet iepriekšējais posts mani pārliecināja, ka ja arī kautko uzrakstīšu, tas nepalīdzēs. Edited June 29, 2008 by overmind Link to comment Share on other sites More sharing options...
X ID Posted June 30, 2008 Report Share Posted June 30, 2008 Pieļauju domu, ka viņam jāpārliecinās, ka kods ir derīgs. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now