Subversion-Projekte lars-tiefland.shop_ns

Revision

Revision 39 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 39 Revision 40
Zeile 20... Zeile 20...
20
        public static function Liste( $aktion )
20
        public static function Liste( $aktion )
21
        {
21
        {
22
            $sql = "SELECT
22
            $sql = "SELECT
23
                    artikel
23
                    artikel
24
                FROM
24
                FROM
25
                    artikel_2_Aktionen
25
                    artikel_2_Aktionen a2a
-
 
26
                JOIN
-
 
27
                    artikel a
-
 
28
                ON
-
 
29
                    a.id=a2a.artikel
26
                WHERE
30
                WHERE
-
 
31
                    astatus=0
-
 
32
                AND
27
                    Aktionen = $aktion
33
                    Aktionen = $aktion
28
            ";
34
            ";
29
            $res = $GLOBALS["db"]->query( $sql );
35
            $res = $GLOBALS["db"]->query( $sql );
30
            while ( $row = $res->fetchrow() )
36
            while ( $row = $res->fetchrow() )
31
            {
37
            {