i have a problem . i have quantity 20 and transaction number is same for every every quantity,but every quantity has unique serial number. when i take transaction 1 from database ,i take the value of quantity than with respect to quantity i generate text field for insertion of serial number for every single quantity but transaction number is same. problem is that in a while loop my text field is not working.outside of loop everything is fine.What can i do for "for loop".
for($r=1; $r<=$rows; $r++ )
//$row = mysql_fetch_row($result);
echo"<td> $name </td>";
echo "<td> $r </td>";
echo "<td> ";
text_cells1(null,'text','serialno', 'serialno', 10, 15, null);
}//for loop end