Subversion-Projekte lars-tiefland.shop_ns

Revision

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

Revision 10 Revision 12
Zeile 5... Zeile 5...
5
        3,
5
        3,
6
        4,
6
        4,
7
        5,
7
        5,
8
        6,
8
        6,
9
        7 );
9
        7 );
10
    mysql_connect( "localhost", "root", "voyager" );
10
    mysql_connect( "localhost", "root", "NcC2007" );
11
    mysql_select_db( "mediaran_de" );
11
    mysql_select_db( "mediaran_de" );
12
    foreach ( $indexes as $index )
12
    foreach ( $indexes as $index )
13
    {
13
    {
14
        $sql = "SELECT
14
        $sql = "SELECT
15
	           id,
15
	           id,
Zeile 18... Zeile 18...
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
-
 
24
                langauge = 'DE'
23
    	";
25
    	";
24
        $res = mysql_query( $sql );
26
        $res = mysql_query( $sql );
25
        if ( ! $res )
27
        if ( ! $res )
26
        {
28
        {
27
            die( mysql_error() . "\n" . $sql . "\n" );
29
            die( mysql_error() . "\n" . $sql . "\n" );