Is there any facility to number the output when retrieve data from database using php?for example 1.output1 2.ouput2 3.output3
the output from the database is the form of following pal pal2 pal3
But I want the form of following 1.pal 2.pal2 3.pal3
I don't know whether it is possible or not using php.Please help me.
Like this
$i = 1; while($row = mysql_fetch_row($result)){ print $i.'. '; print $row; }
best make that...
$i = 1; while($row = mysql_fetch_row($result)){ print $i.'. '$row[0]; $i++; }
Oops.
Thanks a lot.I didn't think like this.