View Single Post
Old 02-06-2007, 09:08 PM  
PHP-CODER-FOR-HIRE
Confirmed User
 
Industry Role:
Join Date: Nov 2006
Posts: 1,090
Quote:
Originally Posted by DjSap View Post
A. You do not fucking do that, all styles go into the CSS file, no hardcoding

print "<IMG class='imgstyle' SRC='hair$hair.gif'>";
If you want to be like that, you shouldn't use single quotes in HTML attributes.

The ultimate correct way is like this:

echo '<img src="whatever.gif" class="super_pic" style="border: 1px solid red;" />';


Print is not required here, nor is escaping quotes.
__________________
PHP-CODER-FOR-HIRE is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote