I want to increase a parameter in my database everytime i click a button, i made a code that should give me the current number in my database, by putting it in a dynamic text field, with the same name as tmp
at the start, my dynamic text field gets set to _level0.tmp
in explorer, if i click my button, the field gets empty
in firefox, the field gets empty, and i get a long load time, seeming forever
anyone ever did something with flash and php who can give me some tips?
or knows whats going wrong here?
test.php
<?
include "common.inc.php";
db_connect();
$query = "SELECT kills FROM speler WHERE naam='".$_REQUEST["naam"]."'";
$result = @mysql_query($query) or die ("Fout bij opzoeken: ".mysql_error());
$array = mysql_fetch_array($result);
$aant = $array["kills"];
print "&tmp=".$aant;
?>
flash code
on (release) {
Name = "renegade";
loadVariablesNum ("test.php?Naam=" + Name, 0);
_root.play();
}