PHP to Flash vars

I’ve been trying to figure this out for hours, many hours…


$table=forum;
if($_GET['action'] == displayNews) { $table=news;};
$query="SELECT * FROM $table";
$result=mysql_query($query);
$row = mysql_fetch_assoc($result);
echo "&name=$row[title]&";

it doesnt matter what’s in the PHP file really… but my point is: flash doesn’t go through the IF Statements in the PHP so if i change the variable in the PHP file dynamically, flash returns UNDEFINED.

im gonna explain it again to be clearer.
in php i can initialize a Variable.
for example
$section=“news”;
then i can change it.


if ($_GET['action']=="contact")
{ $section="contact" ;}

but flash won’t look at that… it will just load whatever value was there initially.(“news”)

please Help. thank you