View Single Post
Old 02-04-2008, 06:33 PM   #1 (permalink)
Sam Granger
The Acquainted
 
Join Date: Sep 2007
Posts: 126
Thanks: 4
Sam Granger is on a distinguished road
Default getting contents between tags and...

Hey!

I have a pdf class, and I can use it to output images. I want to get info from the database. The content looks like this:
Quote:
text text text, more text [image]hello.jpg[/image] haha hello [thumb]hi.gif[/thumb]. haha more text
Anyway, you get the point :).

How do I get the contents out of the tag and put them into images? I think array? or?

I need to use a seperate code for text and images to generate the pdf. :)

For text:
$pdf->ezText("$title", 22);

And for images:
$pdf->ezImage('http://www.domain.com/logo.jpg', '0', '150', 'none', 'left');

for each image.

Help! :(

Do I use preg_match?
Sam Granger is offline  
Reply With Quote