Subversion-Projekte lars-tiefland.shop_ns

Revision

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

Revision 12 Revision 13
Zeile 12... Zeile 12...
12
    foreach ( $indexes as $index )
12
    foreach ( $indexes as $index )
13
    {
13
    {
14
        $sql = "SELECT
14
        $sql = "SELECT
15
	           id,
15
	           id,
16
	           bild_" . $index . "_url AS bild_url,
16
	           bild_" . $index . "_url AS bild_url,
17
    	        bildunterschrift_" . $index . " AS bild_unterschrift,
17
               bildunterschrift_" . $index . " AS bild_unterschrift,
18
	           bild_position_" . $index . " AS bild_position
18
	           bild_position_" . $index . " AS bild_position
19
	        FROM
19
	        FROM
20
	           artikel
20
	           artikel
21
    	´   WHERE
21
    	´   WHERE
22
	            bild_" . $index . "_url <> ''
22
	            bild_" . $index . "_url <> ''
23
             AND
23
             AND
24
                langauge = 'DE'
24
                language = 'DE'
25
    	";
25
    	";
26
        $res = mysql_query( $sql );
26
        $res = mysql_query( $sql );
27
        if ( ! $res )
27
        if ( ! $res )
28
        {
28
        {
29
            die( mysql_error() . "\n" . $sql . "\n" );
29
            die( mysql_error() . "\n" . $sql . "\n" );