PDA

View Full Version : php to flash



javadi82
July 31st, 2003, 03:36 AM
when a php file sends data to flash, do i need to concat the variables with the '&' operator?

why don't i see any php output in flash?

please download .fla and help!

eyezberg
July 31st, 2003, 03:01 PM
not downloaded coz the fla is no use without seeing the php!
yes, you have to use & between var/value pairs.

javadi82
August 1st, 2003, 01:18 AM
here is the php code:


<?php
mysql_connect("hostname","username","secret");

mysql_select_db("database");

$query1=mysql_query("select * from news");

$nrows=mysql_num_rows($query1);

for($i=0;$i<$nrows;$i++){

$row=mysql_fetch_array($query1);

echo $row['date'].":".$row['data']."<br><br>";
}
?>

PS:I have not used the 'username','password' literals in the original file!