Jump to content
GIGN Forum

Neiet Php Skripts


Bertuliinii
 Share

Recommended Posts

<?
$playername = $_POST['playername'];
$xp = $_POST['xp'];
$ip = $_SERVER['REMOTE_ADDR'];
$id = "6";

include('config.php');

$check = mysql_query("SELECT username FROM war3users WHERE username='$playername'");

$register = "INSERT INTO war3users ( playername, xp)
VALUES('$playername', '$xp')";
mysql_query($register) or die(mysql_error());
mysql_close();


echo "COMPLETED!";
//header('location: index.php');
?>

Kas sajaa kodaa nepareizs ? Kad meegjinu pieregistreet man paraada Duplicate entry for '0' for key 1

Link to comment
Share on other sites

Formas(form) skripts !

<html>
<head>
<title>Expirience registration</title>
</head>
<body>
<center>
<form method="post" action="add.php">
    <table border="1">
      <tr><td>Niks</td><td><input type="text" name="playername"></td></tr>
      <tr><td>XP</td><td><input type="text" name="xp"></td></tr>
      <tr><td></td><td><input type="submit" value="register"></td></tr>
    </table>
</form>
</center>
</body>
</html>

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...