Hi, I am trying to add a sort of blogging in system to my site.
I have already got the CSS and HTML sorted for the design, I just need a way to use it as a template and output it in PHP but i've not had much practice an this type of thing.
So, what i'm actually looking to input into the database is this -
<div class="lt"></div>
<div class="lbox"><h2>$title</h2><div class="thumb"><img src="$image_url" alt="Article Image" /><p>$image_caption</p></div><p>$blog_text</p></div></div>
From what I understand I have to split the HTML and the $var's and then join them as a string like below -
'<p>' . '$var' . '</p>
I'll continue to research and try myself but if someone can show me the correct method I would be very grateful.