Flash to PHP to Mysql help.
Hey peeps, ive been fiddling with mysql and php on a newbie level, and i was wondering if you could help me out. I was just wondering how things work. How im supposed to pack things and send it to the next thing. Like how do i pack and send a variable called numCo = 7; and send it to php. And then have php insert that var into mysql.
I found this in a tutorial i was working with and realise its how you submit the info to my sql
PHP Code:
// Setup query
$q = "INSERT INTO `dbUsers` (`username`,`password`,`email`) "
."VALUES ('".$_POST["username"]."', "
."PASSWORD('".$_POST["password"]."'), "
."'".$_POST["email"]."')";
// Run query
$r = mysql_query($q);
But how do i set a variable up in flash to send to php.
Its really urgent ive been trying to understand this for a while but i keep finding different ways people do it and im getting confussed.