Can anyone help me out? I’m trying to show the latest post in my forum on a swf Flash file. i keep getting this error on the swf file
_level0.instance1.textfield
here’s what i wrote in my php page which works
<?php
//The value of $x would be printed to the screen but the SWF would not read the data
$x = "abc";
print $x;
//The value of $x would be printed to the screen and because of the prefix 'textfield=', the SWF will //interpret this as being the intended value for the variable textfield in the SWF
print "textfield=$x";
INSERT INTO files VALUES (
"topictopost",
$db = mysql_connect("localhost", "[root](http://www.juniorblack.com/)");
mysql_select_db("db name",$db);
$result = mysql_query("SELECT * FROM Requests",$db);
$server = 'localhost'; // server location
$user = 'db username'; // db username
$password = 'db password'; // db password
$db = 'db name'; // db name
$link = mysql_connect("$server", "$user", "$password");
mysql_select_db("$db");
$query = "select distinct t.topic_id, t.topic_title
from phpbb_posts p, phpbb_topics t
where p.topic_id = t.topic_id
order by p.post_time desc
limit 1";
$result = mysql_query($query);
print "<ul>";
while ($row = mysql_fetch_assoc($result)) {
$topic_id = $row['topic_id'];
$topic_title = $row['topic_title'];
print "
[*]<a href=\"/forum/viewtopic.php?t=$topic_id\">$topic_title</a>";
}
print "
[/list]";
);
?>
here’s what i wrote in flash
onClipEvent (load) {
//assuming you have a personal web server and PHP installed locally
loadVariables("http://www.mysite.com/posts.php?file=topictopost", this, "GET");
}
the dynamic text field in flash has the ‘textfield’ variable
what am I do wrong??