Subversion-Projekte lars-tiefland.shop_ns

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
19 lars 1
<?php
2
    /**
3
     * @author Lars Tiefland
4
     * @copyright 2012
5
     */
6
 
7
    namespace Weban;
8
    class directory_bild
9
    {
10
        public static function Liste( $a_id )
11
        {
12
            $sql = "SELECT
13
                    id,
14
                    url,
15
                    bild_index
16
                FROM
17
                    directory_bild
18
                WHERE
19
                    directory=$a_id
20
            ";
21
            $res = $GLOBALS["db"]->query( $sql );
22
            while ( $row = $res->fetchRow() )
23
            {
24
                $bild_index = $row["bild_index"];
25
                $ret[$bild_index] = $row;
26
            }
27
            return $ret;
28
        }
29
    }
30
?>