Quote:
Originally Posted by Smudly
I'm having a slight problem setting an img tag in a variable. This variable will be called later in the page.
PHP Code:
$avatar = $uploadrow['avatar']; $avatarshow = "<img src=\'/avatars/$avatar\' width=\'100\' height=\'100\'>";
|
When writing a string in double-quotes, you don't need to escape single-quotes ( '), but you do need to escape other double-quotes ( ")
__________________
<mgraphic /> - I don't have a solution but I admire the problem.
|