-
Putting PHP into Flash?
I have this code in PHP:
Code:
<?php
include("connect.php");
mysql_connect($db_host,$db_user,$db_password) or die(mysql_error());
mysql_select_db($db_name) or die(mysql_error());
$query = "SELECT message, author, header, date, ip
FROM tempernews order by id DESC LIMIT 225";
$result = mysql_query($query);
while($r=mysql_fetch_array($result))
{
echo "<B>$r[header]</B> - ($r[date])<BR>$r[message]<BR>";
}
?>
How do I bring the same results this gives into flash?
(view results here )
-
Hi there,
This will get you on the right track.
Cheers,
Suzy
-
Thanks Suzy.. this is for a user login system, do you think this is relevant to what I'm trying to do? I've been here a few times and saw no relevance, any chance you could tell me what I'm looking for in here?
-
Hi there,
It certainly is relevent...it may be a little more involved but it does address your issue of passing a PHP variable(s) into Flash...you just need to look a little harder :)
You will also find dozens of posts here at Flashkit dealing with this very issue.
Cheers,
Suzy
-
Great, thank you.. I'll look into it!