Subversion-Projekte lars-tiefland.shop_ns

Revision

Zur aktuellen Revision | Blame | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

<?php
    /**
     * @author Lars Tiefland
     * @copyright 2012
     */

    namespace Weban;
    class artikel_bild
    {
        public static function Liste( $a_id )
        {
            $sql = "SELECT
                    id,
                    url,
                    bild_index
                FROM
                    artikel_bild
                WHERE
                    artikel=$a_id
            ";
            $res = $GLOBALS["db"]->query( $sql );
            while ( $row = $res->fetchRow() )
            {
                $bild_index = $row["bild_index"];
                $ret[$bild_index] = $row;
            }
            return $ret;
        }
    }
?>