<?php $rows = array(); while($row = sqlite_fetch_array($result, $res_type, $decode)) { $rows[] = $row; } ?>