473,218 Members | 1,724 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,218 software developers and data experts.

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

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

http://192.168.0.2/php/test2/te*****...a&subject=test

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

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

onClipEvent (load) {
// assuming you have a personal web server and PHP installed
locally
loadVariables("http://192.168.0.2/php/test2/test.php", this,
"GET");
}

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


and the php....

<html>
<head><title>Flash Test</title></head>
<body>

<br><br>

<?php

//phpinfo();

error_reporting(E_ALL);

$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: ' .
mysql_error());

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

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

}

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

mysql_free_result($result);

mysql_close($link);

?>

<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=""
TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
</OBJECT>

</div>
</body>
</html>
outputs this
&n******@test.ca&email=test&content=test

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

any ideas??
Jul 17 '05 #1
1 2767
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

konstantin

"Jason" <ja***@winstorm.ca> wrote in message
news:18**************************@posting.google.c om...
this is my code and what i get... i'm accessing this through this url

http://192.168.0.2/php/test2/te*****...a&subject=test

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

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

onClipEvent (load) {
// assuming you have a personal web server and PHP installed
locally
loadVariables("http://192.168.0.2/php/test2/test.php", this,
"GET");
}

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


and the php....

<html>
<head><title>Flash Test</title></head>
<body>

<br><br>

<?php

//phpinfo();

error_reporting(E_ALL);

$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: ' .
mysql_error());

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

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

}

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

mysql_free_result($result);

mysql_close($link);

?>

<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=""
TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>
</OBJECT>

</div>
</body>
</html>
outputs this
&n******@test.ca&email=test&content=test

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

any ideas??

Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Mirco | last post by:
Hi I have a page written with php and a MySQL Database. Now, I want to redesign the whole, but still with the Database and php. is it possible to design the page with Flash and then to put all...
30
by: Darren Gates | last post by:
hi PHP users, Here's a Flash 7 version of phpMyAdmin: http://www.tufat.com/phpflashmyadmin.php Special features include: drag-and-drop interface for InnoDB table relationships, quick record...
1
by: Sagi | last post by:
i got an html file with flash embeded in it. the flash file load with parameters like this: <OBJECT id="myFlash"...
2
by: Mariame | last post by:
Hi Everyone How to embeded a Flash file ".swf" in aspx page??? Thx in Advance
3
by: johnsonholding | last post by:
Here is the script I have in my page : <!-- Begin function popUp(URL) { day = new Date(); id = day.getTime(); eval("page" + id + " = window.open(URL, '" + id + "',...
3
by: dan | last post by:
Hi all, I have a question about flash-memory lifespan. My database consists of 1 table, the table has 50 fields of 10 bytes each, thus each record will have 500bytes. There are 1000 records in...
3
by: paolazi | last post by:
Hello I have a problem: I have a database(mysql) with the following fields: test, descr, title I want to display them into a flash file. Now my php file called list.php (which collect the...
0
by: Razorholt | last post by:
Hello there - I have written an app in Python and I have embeded the IE browser in order to display some layout - with dynamic content coming from MySql. As Python + IE browser + Flash may be...
0
by: prince23 | last post by:
hi, i am trying to develop an flash application. where they have designed the entire front end by flash. now i need to doing the functionality part like taking the data from...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
1
by: davi5007 | last post by:
Hi, Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.