I dont know if [color=#0000ff]"&writename=$i"; [/color][color=black]or [/color][color=#0000ff]"&writename$i="; [/color][color=black]it the correct syntax.[/color]
And
the missing $ was just a copy and past thing… here is the code straight from PHP…
if($numallComments == 0) { print " No entries yet.."; }
else {
for($i=0; $i<3; $i++){
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++;
}}
Here is the link to the above code, as it is now, only movie 3 of 10 is getting its info.
http://www.cathyschultz.com/boylen/Girls%20of%20Boylen7.html
Since it is in the loop it seems strange that the 3rd one is the only one to show up ?
Below is manual code no-loop where [color=black]1 to 10 is manually done.[/color]
[color=black]That code works that way. But as soon as I try to put it in a loop it stops working.[/color]
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 .'';
//****************************************************************************************************
//****************************************************************************************************
print "&writename1="; $name = mysql_result($fewComments, 1, 'name'); print''. $name .'';
print "&writelocation1="; $location = mysql_result($fewComments, 1, 'location'); print'<b>Location: </b><br>'. $location .'';
print "&writeage1="; $dob = mysql_result($fewComments, 1, 'dob');
$today = date("Y");
$dob = $today - $dob; print'<b>Age: </b>'. $dob .'';
print "&writedate1="; $time = mysql_result($fewComments, 1, 'time');
$time = date("d-m-Y"); print'<b>Date: </b>'. $time .'';
print "&writecomments1="; $comments = mysql_result($fewComments, 1, 'comments'); print'<b>Commnets: </b><br>'. $comments .'';
hmmmmm, is it possible that PHP is trying to pass the info to flash faster than it can handle ?