Using InvisionBoard (Php & Flash)

Okay, I’m confused how to send variables through a mysql and recieve variables through a mysql. Would this work?

Function within a php File

function testing() {
	global $ibforums, $DB, $std;

	$hptest = $_POST['hptest'];
	$DB->query("INSERT INTO ibf_kenka_hptest VALUES ('$hptest')");    
	}

Flash Code

_root.hp = 100;
hptest = _root.hp;
loadVariables("index.php?kenka.php&func=testing", this, "POST");