- private function get_photos()
- {
- $this->avail_photos = Array();
- $count = 0;
-
- $result = $this->db->db_query("
- SELECT id, name
- FROM photos
- ORDER BY time ASC
- ");
-
- while($row = $this->db->db_fetch_object($result)) {
-
- $photo_id = $row['id'];
- $photo_name = $row['name'];
-
- $this->photos[$photo_id] = $photo_name;
- $this->avail_photos[$count] = $photo_id;
-
- if(!isset($this->current_photo))
- $this->current_photo = $count;
-
- $count++;
-
- }
-
- } // get_photos()
-