HTTPService & MySQL & PHP

yuceLbey

New Member
I can't seem to post needed information to my database, here's what I've got:\[code\]<mx:HTTPService id="someService" url="http://name.domain/postPHP.php" method="POST"> <s:request xmlns=""> <name>{name.text}</name> <score>{score.text}</score> </s:request></mx:HTTPService>\[/code\]And of course a button to send();Php as follows:\[code\]echo "<?xml version=\"1.0\" ?>\n;$connections = ...;mysql_select_db("...");$name = $_POST['name'];$score = $_POST['score'];$query = "INSERT INTO hs (name, score) VALUES ('$name', '$score')"; mysql_query($query);\[/code\]So what is wrong? Why ain't it adding the information to my database?Thanks, Yan
 
Back
Top