Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Jak wyciągnąć ciąg zniaków z rekordu, który zawiera kod php?
moniek.fm
post
Post #1





Grupa: Zarejestrowani
Postów: 13
Pomógł: 0
Dołączył: 22.01.2012

Ostrzeżenie: (0%)
-----


Witam wszystkich.

Mam problem taki jak w tytule. Posiadam w bazie danych rekord w którym jest zapisana kod php części strony. Potrzebuję wyciągnąć z niego tylko to co jest pomiędzy znacznikami <div> </div>. Próbowałem przy użyciu LIKE ale niestety się udało. Może ktoś spotkał się kiedyś z czymś takim. W necie nie znalazłem odpowiedzi, a sam jestem za głupi żeby sobie poradzić. Proszę o pomoc

Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
moniek.fm
post
Post #2





Grupa: Zarejestrowani
Postów: 13
Pomógł: 0
Dołączył: 22.01.2012

Ostrzeżenie: (0%)
-----


Chce wyciągnąć z tego rekordu taki tekst:

<div class="itemContainerMain">
<span class="title">
<a href="/link/target.php" title="target" target="_blank">target</a>
</span>
<a href="/link/target2.php" title="target2" target="_blank">
<img src="/jpg/thumbs/240x180/1924/3846335/1.jpg" alt="target2" width="240" height="180" /></a>
<span class="sortLinks">
<a href="/link/link.php" title="link" target="_blank">link1</a> / <a href="/link/link2.php" title="link2" target="_blank">link2</a> / <a href="/link/link3.php" title="link3" target="_blank">link3</a> / <a href="/link/link4.php" title="link4" target="_blank">link4</a></span>
</div>

Przed tym tekstem i po nim jest dalsza część strony.
Proszę o pomoc...
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 3.10.2025 - 03:51