Witam za Chiny nie mogę zrobić aby $1 bylo wartoscia tego (.*?), bo cały czas "nie wykonuje" mi tego zamiast kodu ktory ma byc pomiedzy tabelkami podstawia mi '$1', nie za bardzo wiem dlaczego. ponizej kod
<?php
$stronawiki2[0
] = preg_replace( '@<table class="gallery" cellspacing="0" cellpadding="0">(.*?)</table>@s', ''.GalleryTAB
("$1").'', $stronawiki2[0
] );
?>
Przykladowa tabelka:
<div class="thumb" style="padding: 26px 0;"><a href="view.php?name=Grafika:VanGogh-Irises_2.jpg" title="Grafika:VanGogh-Irises 2.jpg"><img src="http://upload.wikimedia.org/wikipedia/commons/thumb/e/e0/VanGogh-Irises_2.jpg/120px-VanGogh-Irises_2.jpg" width="120" height="93" alt="" /></a></div> <div class="gallerytext"> <div class="thumb" style="padding: 37px 0;"><a href="view.php?name=Grafika:VanGogh-still-life-four_sunflowers.jpg" title="Grafika:VanGogh-still-life-four sunflowers.jpg"><img src="http://upload.wikimedia.org/wikipedia/commons/thumb/4/42/VanGogh-still-life-four_sunflowers.jpg/120px-VanGogh-still-life-four_sunflowers.jpg" width="120" height="71" alt="" /></a></div> <div class="gallerytext"> <div class="thumb" style="padding: 22px 0;"><a href="view.php?name=Grafika:VanGogh-View_of_Arles_with_Irises.jpg" title="Grafika:VanGogh-View of Arles with Irises.jpg"><img src="http://upload.wikimedia.org/wikipedia/commons/thumb/9/9f/VanGogh-View_of_Arles_with_Irises.jpg/120px-VanGogh-View_of_Arles_with_Irises.jpg" width="120" height="101" alt="" /></a></div> <div class="gallerytext"> <div class="thumb" style="padding: 13px 0;"><a href="view.php?name=Grafika:VanGogh-Irises_3.jpg" title="Grafika:VanGogh-Irises 3.jpg"><img src="http://upload.wikimedia.org/wikipedia/commons/thumb/5/5c/VanGogh-Irises_3.jpg/93px-VanGogh-Irises_3.jpg" width="93" height="119" alt="" /></a></div> <div class="gallerytext">
Jak daję parametr e, to nie kmini tego

z góry dzieki
Kolejny brak bbCode konczy sie ostrzezeniem - NuLL
Ten post edytował NuLL 22.10.2005, 01:44:20