Consider:
while ($j < $num2) {
$parent_id=mysq l_result($resul t2,$j,"parent_i d");
$fam_first_name =mysql_result($ result2,$j,"fam _first_name");
$fam_age=mysql_ result($result2 ,$j,"fam_age");
echo "it is $parent_id";
echo "<tr id=$parent_id>" ;
echo "<td></td>";
echo "<td >$fam_first_nam e</td>";
echo "<td>$fam_a ge</td>";
echo "</tr>";
++$j;
}
The line that says "it is $parent_id" will print the variable.
The next parent id will skip one if it has two of the same values. I
know this may not make sense, but:
it is 1
it is 3
it is 3
it is 6
but the second three from above will never be in the tr id= tag. i
hope this makes sens. It just doesn't print in the tag if it has two
rows.
thanks.
while ($j < $num2) {
$parent_id=mysq l_result($resul t2,$j,"parent_i d");
$fam_first_name =mysql_result($ result2,$j,"fam _first_name");
$fam_age=mysql_ result($result2 ,$j,"fam_age");
echo "it is $parent_id";
echo "<tr id=$parent_id>" ;
echo "<td></td>";
echo "<td >$fam_first_nam e</td>";
echo "<td>$fam_a ge</td>";
echo "</tr>";
++$j;
}
The line that says "it is $parent_id" will print the variable.
The next parent id will skip one if it has two of the same values. I
know this may not make sense, but:
it is 1
it is 3
it is 3
it is 6
but the second three from above will never be in the tr id= tag. i
hope this makes sens. It just doesn't print in the tag if it has two
rows.
thanks.
Comment