Marcus
Avatar Marcus
Themenersteller
Guru (224 Beiträge)

Fehler bei Bilddarstellung

am 19.04.2013, 12:35 Uhr eröffnete Marcus folgenden Thread
PHP & MySQL    1134 mal gelesen    0 Antwort(en).

Hallo zusammen!

echo '

';
$topcommentator_query="SELECT
comment_author, comment_author_email,
comment_type, SUBSTRING_INDEX(comment_author_url, '/', 3) as
top_commentator, COUNT(*) as top_num FROM $wpdb->comments
WHERE comment_approved='1'
AND comment_author_url IS NOT NULL
AND comment_author_url != ''
AND comment_author_email NOT LIKE 'webbi@themenfreund.de%'
AND comment_author_email NOT LIKE 'kommentar@themenfreund.de%'
AND comment_author_url NOT LIKE 'http://twitter.com/%'
AND comment_author_url NOT LIKE 'http://themenfreund.de%'
AND comment_author_url NOT LIKE 'http://facebook.com%'
AND comment_type NOT LIKE 'pingback' OR 'trackback'
GROUP BY top_commentator
Order by top_num DESC, comment_date ASC
LIMIT 18";
$topcommentator_result = $wpdb->get_results($topcommentator_query);
if ( !empty($topcommentator_result) ) {
foreach ($topcommentator_result as $comment) :
$co_aut = $comment->top_commentator;
$co_aut = str_ireplace("http://", "", $co_aut);
echo '

';
echo '

';
echo '

';
echo '';
echo $comment->comment_author.'
';
echo '
';
echo '';
echo $comment->top_num.' Kommentare';
echo '
';
echo '

';
echo '

';
endforeach;
}
echo '

';
}

Mit dem Code stelle ich diese Seite dar.

Wer mit der Maus über die Bilder fährt, bemerkt, das in der jeweiligen Zeile darunter immer ein Bild weniger dargestellt wird je weiter man nach rechts rutscht.

Ich kann leider den Fehler nicht finden, der das Phänomen verursacht! Wisst ihr eine Lösung??

Gruß

Marcus


Das Regional-Magazin für Lüneburg und die Region:
salzsau-panorama.de



    « zurück zu: PHP & MySQL

    Das Seitenreport Forum hat aktuell 5273 Themen und 36107 Beiträge.
    Insgesamt sind 48345 Mitglieder registriert.