i like wrote this
getcardimages.php
<?php
$server = “localhost”;
$user = “khelorummy_d”;
$pass = “khelorummy123”;
$database = “khelorummy_d”;
mysql_connect($server, $user, $pass);
mysql_select_db($database);
$SqlQuery = “SELECT c
.* FROM cards
c, cardsets
cs WHERE c.cardID
= cs.cardID
”;
$Result = $DBConn->ExecuteQuery($SqlQuery);
if (!Result || mysql_num_rows($Result)==0) {
$rowset = ‘&msg=’.mysql_error().’&’;
} else {
$rowset = ‘&n=’.mysql_num_rows ($Result);
$i = 1;
while ($row = mysql_fetch_assoc ($Result)) {
while (list ($key, $val) = each ($row)) {
$rowset .= ‘&’ . $key . $i . ‘=’ . stripslashes($val);
}
$i++;
}
$rowset .=’&’;
}
return $rowset;
?>
and getcardimages.fla like this
var lvSend = new LoadVars();
var lvReceive = new LoadVars();
lvSend.SendAndLoad(“http://192.168.1.9/projects/khelorummy/user/getcardimages.php",lvReceive,"get”);
lvReceive.onLoad = function(bSuccess) {
if(bSuccess == true) {
for (var i:Number=0; i <= this.n; i++) {
this.root.createEmptyMovieClip(“container”+i, i);
var mc = this.root[“container”+i];
mc.loadMovie(“http://192.168.1.9/projects/khelorummy/cards/"+this[“label”+i]+".gif”);
}
}
and in design mode i took one movie clip and i named it as “container”. is it correct?
why images are not displaying when i execute getcardimages.swf?
plz give me right solution.
thankq