I’ve got this code that retrieve data from my SQL Data Base into my AS3 code.
My table (data base) has this rows : “id”, “title”, “price”, “information”, “mail”.
In my AS3 code I loaded “title”.
Php Code :
while ($row = mysql_fetch_array($sql_result)) {
$theTitle = $row["theTitle "];
$phptheTitle= $phptheTitle.’
'.$theTitle ;
}
echo “phptheTitle=” . $phptheTitle;
AS3 code :
var myResult:String = evt.target.data.phptheTitle;
output_txt.htmlText = myResult;
So my output_txt is displaying all items in the row “title”.
Now, is it possible to create a link for each title(in AS3) ? In order to display “price”, “information”, “mail” when we click on the title(each title has their own “price”, “information” and “mail”, contain in my database).
Exemple : The AS3 code displays “Computer”. When I click on “ipod Touch” it displays “price”, “information” and “mail” that is contains in my database.
Here’s a video explaining what I’d like to do : help2 - Sendvid
Thx