사이트 내 전체검색
PHP
While 문을 For 문으로
로빈아빠
https://cmd.kr/php/341 URL이 복사되었습니다.

본문


1.
$i = 0;
while($row=mysql_fetch_array($query)){
 ......
 ......
}
$i ++;

2.
for($i=0;$row=mysql_fetch_array($query);++$i){
 ......
 ......
}

댓글목록

등록된 댓글이 없습니다.

PHP
871 (10/18P)

Search

Copyright © Cmd 명령어 3.142.255.189