Jump to content
php.lv forumi

Palīdziet ar vienu skriptu !


Danciic625

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

Kaa apskatiities ?

Mja.... Ka tad vareji vispar bazi uzlikt un palaist ja to nezini?

Es pats naku no WAP tautas, tur tas ir kaut cik normala paradiba ja panem skriptu, mistiska veida to uzliek(starp citu izmantojot specialus online FTP) un tad sakas jautajumi sakot ar ...Ka atzipot, ka rediget, kadu konfigu vajag, visadi citi gluki un visbeidzot ka sakonektet bazi un tad man neiet tas un tas.

Web jau itka tam nevajadzetu but tik gruti ko sameklet.

Tiem WAP lietotajiem nav pat briziem iespeja normala ar saviem WAP device pagooglet ka nakas.....

Bet WEB....

Edited by mounkuls
Link to comment
Share on other sites

×
×
  • Create New...