Thread: Resolved Need help with simple print
View Single Post
Old 01-10-2013, 09:14 PM   PM User | #3
jimutt
New Coder

 
Join Date: Sep 2011
Posts: 47
Thanks: 1
Thanked 15 Times in 14 Posts
jimutt is an unknown quantity at this point
I would write it like this:
PHP Code:
echo '<div id="thumbnail" style="background: url("images/portfolio/'.$row['thumbnail'].'"); width: 240px; height: 160px;\">title</div> '
It's by the way better practice to use echo instead of print as echo is slightly faster than print and there are therefore no reason to use print. Well if you don't need the return value of print in an expression for example.

EDIT: oops, didn't see you were quicker than me TFlan

Last edited by jimutt; 01-10-2013 at 09:19 PM..
jimutt is offline   Reply With Quote