Flash embeded in PHP file accessing Mysql database....HELP

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
this is my code and what i get... i'm accessing this through this url

me@test.ca&subject=test"> =me@test.ca&subject=test

it grabs the correct stuff from the database, but doesn't put it into

this is what i have in the flash file...

onClipEvent (load) {
    // assuming you have a personal web server and PHP installed
    loadVariables(" ", this,

named the textboxes, accordingly, 'name', 'email', and 'content'

and the php....

<head><title>Flash Test</title></head>





$user = $HTTP_GET_VARS['user'];
$subject = $HTTP_GET_VARS['subject'];

$link = mysql_connect('localhost', 'mailer', 'mailer321')
   or die('Could not connect: ' . mysql_error());

mysql_select_db('mailer') or die('Could not select database');

$query = "SELECT * FROM email where name = '$user' and subject =
'$subject' order by id desc limit 1";
$result = mysql_query($query) or die('Query failed: ' .

while ($rows = mysql_fetch_array($result)) {

$name = $rows['name'];
$email = $rows['subject'];
$content = $rows['content'];


print "&name=$name";
print "&email=$email";
print "&content=$content";




<div align="center">

<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6 ,0,0,0"
WIDTH="760" HEIGHT="430" id="test" ALIGN=""><PARAM NAME=movie
VALUE="test2.swf"><PARAM NAME=quality VALUE=high>

<param name="name" value="<? echo $name ?>">
<param name="email" value="<? echo $email ?>">
<param name="content" value="<? echo $content ?>">

<PARAM NAME=bgcolor VALUE=#EEEEEE><EMBED src="test2.swf" quality=high
bgcolor=#EEEEEE  WIDTH="760" HEIGHT="430" NAME="test" ALIGN=""
PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer "></EMBED>



outputs this

but no content in the flash text boxes....

any ideas??

Re: Flash embeded in PHP file accessing Mysql database....HELP

your variables are not loaded correctly into the flash movie. it has nothing
to do with php. i would ask this on a flash list. for example, flashkit.com


Quoted text here. Click to load it
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6 ,0,0,0"
Quoted text here. Click to load it

Site Timeline