murushanmugham
IS-IT--Management
- Jan 2, 2003
- 33
I have a table with fields line1, line2, line3 ... upto line50.
How do i display the lines in a loop incrementing the counter ctr. Can i have the value of ctr with the field name like line1 as line(ctr).
I have a routine like this
$ctr=1
do
{
if(!$line1=="")
{
if(is_numeric($t1)
{
?>
<font color=maroon size=5><? echo '<pre>' .$line1. '</pre>';?></font>
<?
}
++$ctr;
while($ctr<41);
How do i display the lines in a loop incrementing the counter ctr. Can i have the value of ctr with the field name like line1 as line(ctr).
I have a routine like this
$ctr=1
do
{
if(!$line1=="")
{
if(is_numeric($t1)
{
?>
<font color=maroon size=5><? echo '<pre>' .$line1. '</pre>';?></font>
<?
}
++$ctr;
while($ctr<41);