Jump to content
php.lv forumi

Danciic625

Reģistrētie lietotāji
  • Posts

    18
  • Joined

  • Last visited

Posts posted by Danciic625

  1. <?
    $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

×
×
  • Create New...