how can i take post from for loop

General discussions related to php

Moderators: macek, egami, gesf

New php-forum User
New php-forum User
Posts: 1
Joined: Fri Nov 23, 2012 6:40 am

how can i take post from for loop

Postby asad » Fri Nov 23, 2012 6:53 am

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

Return to “PHP General”

Who is online

Users browsing this forum: No registered users and 6 guests