SmifWes
02-02-2005, 10:19 PM
I am trying to get the data from my DB and get them into flash. The PHP and .fla file are below. The list.fla file has a layer called "block" in block are movie clips named from 101 to 106. I want to be able to pull each row the DB in to Flash according to the number of each. movie clip. I really need this help badly. Thanks in advanced!
Here's my PHP
<?php
$conn = mysql_connect("localhost", "", "");
mysql_select_db("loft588", $conn);
$sql = "SELECT * FROM units";
$result = mysql_query($sql, $conn);
while ($newArray = mysql_fetch_array($result)) {
$id = $newArray['id'];
$unit = $newArray['unit'];
$floor = $newArray['floor'];
$price = $newArray['price'];
$sqft = $newArray['sqft'];
$fee = $newArray['fee'];
$state = $newArray['state'];
echo "Need to figure out the best way to format this";
}
?>
Here's my Flash...
list2.fla (http://www.mallydangerous.com/list2.fla)
Here's my PHP
<?php
$conn = mysql_connect("localhost", "", "");
mysql_select_db("loft588", $conn);
$sql = "SELECT * FROM units";
$result = mysql_query($sql, $conn);
while ($newArray = mysql_fetch_array($result)) {
$id = $newArray['id'];
$unit = $newArray['unit'];
$floor = $newArray['floor'];
$price = $newArray['price'];
$sqft = $newArray['sqft'];
$fee = $newArray['fee'];
$state = $newArray['state'];
echo "Need to figure out the best way to format this";
}
?>
Here's my Flash...
list2.fla (http://www.mallydangerous.com/list2.fla)