rodrigoalex
06-17-2009, 11:47 PM
Hi's it going?
I am creating an application with Flex and I am a great problem to recover the data as the database, I do not know what to do. I am using to connect to a PHP generating XML in PHP (the code is below), but I do not know how the recovery in the FLEX, tried with the mx: HTTPService, but it returns an error (and error codes follow below).
file ntc.php:
<?php
require_once("con.php");
$mysql_select = "SELECT * FROM projntc";
$mysql_query = mysql_query($mysql_select);
$mysql_array = mysql_fetch_array($mysql_query);
$ntc = "<boardntc>";
$ntc .= $mysql_array['title'];
$ntc .= "</boardntc>";
echo($ntc);
?>
flex :
<mx:HTTPService id="ntc" url="{ntc.php}" >
<mx:Label x="10" y="30" width="112" id="tituloNtc" text="{boardntc}"/>
</mx:HTTPService>
erro:
Parse error at '<mx:HTTPService>'.
I am creating an application with Flex and I am a great problem to recover the data as the database, I do not know what to do. I am using to connect to a PHP generating XML in PHP (the code is below), but I do not know how the recovery in the FLEX, tried with the mx: HTTPService, but it returns an error (and error codes follow below).
file ntc.php:
<?php
require_once("con.php");
$mysql_select = "SELECT * FROM projntc";
$mysql_query = mysql_query($mysql_select);
$mysql_array = mysql_fetch_array($mysql_query);
$ntc = "<boardntc>";
$ntc .= $mysql_array['title'];
$ntc .= "</boardntc>";
echo($ntc);
?>
flex :
<mx:HTTPService id="ntc" url="{ntc.php}" >
<mx:Label x="10" y="30" width="112" id="tituloNtc" text="{boardntc}"/>
</mx:HTTPService>
erro:
Parse error at '<mx:HTTPService>'.