I hope someone can help me because I am about to give up.
[color=blue]This is the PHP loop.[/color]
if($numallComments == 0) { print " No entries yet.."; }
else { while ($array = mysql_fetch_array($fewComments)) {
print "&writename[$i]="; $name = mysql_result($fewComments, $i, 'name'); print''. $name .'';
print "&writelocation[$i]="; $location = mysql_result($fewComments, $i, 'location'); print'<b>Location: </b><br>'. $location .'';
print "&writeage[$i]="; $dob = mysql_result($fewComments, $i, 'dob');
$today = date("Y");
$dob = $today - $dob; print'<b>Age: </b>'. $dob .'';
print "&writedate[$i]="; $time = mysql_result($fewComments, $i, 'time');
$time = date("d-m-Y"); print'<b>Date: </b>'. $time .'';
print "&writecomments[$i]="; $comments = mysql_result($fewComments, $i, 'comments'); print'<b>Commnets: </b><br>'. $comments .'';
$i++;
}
[color=blue]This is the Flash recieve and paste to duplicated movies.[/color]
myEntries = new LoadVars()
myEntries.ref = this
myEntries.load("GuestBook.php?action=read&r="+random(999)+"&NumLow="+_parent.NumLow)
myEntries.onLoad = function(success){
if(success){
ring.writename.text = this.writename;
ring.writeage.text = this.writeage;
ring.writedate.text = this.writedate;
ring.writelocation.text = this.writelocation;
ring.writecomments.text = this.writecomments;
for(i=0; i<3; i++){
eval("ring"+i).writename.text = this.eval("writename"+i);
eval("ring"+i).writeage.text = this.eval("writeage"+i);
eval("ring"+i).writedate.text = this.eval("writedate"+i);
eval("ring"+i).writecomments.text = this.eval("writecomments"+i);
}
All I get is “Undefined”
I guess the error is in;
A. the loop in PHP is not reading the data as I think it is.
B. Flash in not recieving the data for some reason.
I hope someone can help me with this