Board index   FAQ   Search  
Register  Login
Board index PHP PHP General

how can i take post from for loop

General discussions related to php

Moderators: macek, egami, gesf

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"<tr>";
echo"<td> $name </td>";
echo "<td> $r </td>";
echo "<td> ";
text_cells1(null,'text','serialno', 'serialno', 10, 15, null);
echo"</td>";
echo"<td>";

echo"</td>";

echo"</tr>";
}//for loop end
asad
New php-forum User
New php-forum User
 
Posts: 1
Joined: Fri Nov 23, 2012 6:40 am

Return to PHP General

Who is online

Users browsing this forum: Google [Bot] and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron