initialize a var to 1 outside of your mysql_fetch_arr ay() loop. Then, within the mysql_fetch_arr ay() loop, use the var as necessary and increment it by 1
how do i increment inside a loop?
Collapse
X
-
Tags: None
-
-
ok maybe not clear in what i wanted
i have this
$pos=1
where do i put the loop in this
($row = mysql_fetch_arr ay($result, MYSQL_ASSOC))Comment
-
thank you iam_clint i had trouble putting it wher i wanted it at first then put it in the correct place in place of $row[$pos]
thank you againComment
Comment