I have managed to get my dynamic data read into a flash dynamic text box. Using MySQL and PHP.
MY problem is when I add and extra column to my output which are basically links it stops.
Now I have discovered the problem but I am struggling on how to get a solution:
I have to print out :HEADING, DATE, TEXT and EXTERNAL LINK, not using the code I have at mo but leaving the output of the EXTERNAL LINK it displays all the db info, but then I add the EXTERNAL LINK to my php out put and then in flash it displays the first record and stops at the EXTERNAL LINK output.
The issue is that my links are not the normall ones: www.site.co.uk, but have parameters attached to them like www.site.co.uk?para1=123¶2=432.
now it displays as mentioned up to the first link as far as www.site.co.uk?para1=123 so the issue I beleive is that its taking the ‘&’ as the end and is not appending anything else after this
If someone knows of a solution to this could they assist, I have put up my PHP and FLASH code for reference. I thing is that the links will not be under my control so the ‘&’ variable will be staying etc.
PHP CODE:
<?php
// Create a connection to your database.
require_once ('connectPagehere.php'); // Connect to the db.
// Query database and select the last 10 entries.
$result = mysql_query("SELECT heading, DATE_FORMAT(date, ' %W %D %M %y') AS dr, news, link FROM news ORDER BY id DESC");
$text= '';
while($row = mysql_fetch_array($result))
{
$text.='<font face="Verdana, Arial, Helvetica, sans-serif" pointsize="3" color="#730683" size="14"><b>'.$row['heading'].'</b></font><br /><font color="#c38ecb" size="10">'.$row['dr'].'</font><br /><font color="#62226c" size="12">'.$row['news'].'</font><br /><font color="#ff0000" size="10"><a href="http://'.$row['link'].'">Read More . . .</a></font><br /><br />';
}
echo 'content='.$text;
?>
the ’ content ’ is my variable in flash.
FLASH CODE:
This is simple a dynamic textbox with a variable name called content then the loading code as below:
theTextbox.loadVariables("http://www.site.co.uk/dataSheet.php", this, "POST");
well I hope I have made this understandable, and easy to fix…
si