웹 개발 관련 기억 저장소 음냐냐냐~
$a = 0; foreach($array as $value) { $a++; ... }
$query = "SET @NUM := 0"; $sth = $DB->exec($query); $query = "SELECT @NUM := @NUM+1 AS CNT FROM ...."; $sth = $DB->prepare($query); $sth->execute();
댓글 없음:
댓글 쓰기