Thread: Resolved Need help with simple print
View Single Post
Old 01-10-2013, 08:42 PM   PM User | #1
apotd
New Coder

 
Join Date: Oct 2011
Posts: 75
Thanks: 1
Thanked 0 Times in 0 Posts
apotd is an unknown quantity at this point
Need help with simple print

Okay so this is what I'm trying to do;

In a loop I want to print different divs that all have a different background image (the background image is stored in a table in a row called "thumbnail").

Code:
 print("
<div id=\"thumbnail\" style=\"background: url(\"images/portfolio/{$row['thumbnail']}\"); width: 240px; height: 160px;\">
				
title
				
</div>
");
But only the titles show up, not the background.

I'm totally not familiar with anything of PHP and this seems very simple, but I have no idea on what I do wrong.

Could someone maybe help me out?

Last edited by apotd; 01-12-2013 at 10:15 AM..
apotd is offline   Reply With Quote