PROGRESS REPORT:
Hi Again,
Just to explain my question in detail. I have a php page (dbtext.php) that is getting the data from mysql database. And on the same page is a SWF file with dynamic text box.
I am trying to import the data from mysql to this flash file.
When i have tried to output the result using echo (without flash) it works fine, just that I cannot get it to work in flash
Here is the code I am using on my dbtest.php page:
<?php
$page = $_GET['page'];
if (($page == "")){
$page = "home";
}
$connect = @mysql_connect("localhost","user","pass") or die("cannot connect");
mysql_select_db("databasename");
//$query = "SELECT * FROM pages";
$sql = "SELECT * FROM pages WHERE page = '$page'";
$result = mysql_query($sql) or die("Query failed");
$row = mysql_fetch_array($result);
print "&textbox=".urlencode($row['text']);
mysql_free_result($result);
mysql_close( $connect );
?>
Here is the code that I have used in the SWF file
onClipEvent (load) {
loadVariables("dbtest.php", this, "GET");
}
The results I get are very weird. view them at www.janaksingh.co.uk/php/dbtest.php