hi all
i’m using flash mx2004 and php 4+ but i’ve some issues on flash side
i’ve a table called organization this has 3 columns (orgId, orgName, Des)
and has 10 rows of records as data
but when i tryed 2 retrive in that data in flash, that only returns me a last and single row from table. As i said there are 10 record on my table so, how do I get each organization and its description in flash?
my php code Something like this…
include ("connection.php");
$query = "select Organization_Name, Description from ecards";
$result = mysql_query($query);
while($rows = mysql_fetch_array($result)){
$list = "<b>Name : </b>" .$rows["Organization_Name"];
$list .= "<b>Description : </b>" .$rows["Description"] ."<br>";
}
print "&list=" . urlencode($list) . "&";
and flash code
var loadphp = new LoadVars();
loadphp.onLoad = function(success){
if(success){
list = this.list;
}
}
loadphp.load("test.php");
plz help i’m stuck, wat should i do 2 get the complete data from db
any suggession would be apperciated
thanx
amjad