Hi all,
My data from mysql is succesfully showing up in Flash, unless I try to pass it a variable using GET. The php itself is working when I test it, but it's not showing up in Flash.
The following works just fine, and shows up in Flash as desired:
$query = "SELECT content FROM vision WHERE id='1'";
However, when I try this:
$query = "SELECT content FROM vision WHERE id='$id'";
then pass a variable in the URL for id, nothing happens. How can I get it to pick up the variable?
Here's a look at *all the code:
<?
// formulate and execute query
$query = "SELECT content FROM vision WHERE id='$id'";
$result = mysql_query($query) or die("Error in query: " .
mysql_error());
// get row
$row = mysql_fetch_object($result);
// print output as encoded data for Flash actionscript
echo "vision=" . urlencode($row->content);
// close connection
mysql_close($connection);
?>
Thanks in advance for the help....