Subversion-Projekte lars-tiefland.shop_ns

Revision

Revision 2 | Details | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

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