Hey,
Having some strange problems with this particular script. It doesn't load or anything, just shows a white blank page.
I've used this to do other things, such as just sending a DELETE query, which works fine. But I'm stumpted to why this one doesn't work
Would appreciate any help on this
Cheers.
Having some strange problems with this particular script. It doesn't load or anything, just shows a white blank page.
PHP:
<?php
$db_host = "1";
$db_user = "2";
$db_pwd = "3";
$db_name = "4";
mysql_connect($db_host, $db_user, $db_pwd);
mysql_select_db($db_name);
if (!isset($_POST["submit"]))
{
echo("
<form action="" method=\"post\">
Player ID: <input type=\"text\" name=\"playerid\"><br />
XP Amount: <input type=\"text\" name=\"xp\"><br />
Race: <input type=\"text\" name=\"race\"><br />
Skill 1: <input type=\"text\" name=\"skill1\"><br />
Skill 2: <input type=\"text\" name=\"skill2\"><br />
Skill 3: <input type=\"text\" name=\"skill3\"><br />
Skill 4: <input type=\"text\" name=\"skill4\"><br />
<br />
<input type=\"submit\" name=\"submit\" value=\"Submit\">
</form>
Race List<br />
<br />
1 => Undead Scourage<br />
2 => Human Alliance<br />
3 => Orcish Horde<br />
4 => Night Elves of Kalimdor<br />
5 => Blood Mage<br />
6 => Shadow Hunter<br />
7 => Warden<br />
8 => Crypt Lord<br />
9 => Chameloen
");
}
else
{
$playerid = $_POST["playerid"];
$xp = $_POST["xp"];
$race = $_POST["race"];
$skill1 = $_POST["skill1"];
$skill2 = $_POST["skill2"];
$skill3 = $_POST["skill3"];
$skill4 = $_POST["skill4"];
mysql_query("DELETE FROM `war3users` WHERE playerid='".$playerid."' AND race='".$race."'") or die(mysql_error());
mysql_query("INSERT INTO `war3users` (playerid, xp, race, skill1, skill2, skill3, skill4) VALUES ('".$playerid."', '".$xp."', '".race."', '".skill1."', '".skill2."', '".skill3."', '".skill4."') or die(mysql_error());
echo("
Ta
");
}
?>
I've used this to do other things, such as just sending a DELETE query, which works fine. But I'm stumpted to why this one doesn't work

Would appreciate any help on this

Cheers.
Last edited: