Page 1 of 1

syntax issues

Posted: Sat Jul 03, 2010 2:19 am
by Smudly
I'm having a slight problem setting an img tag in a variable. This variable will be called later in the page.

Code: Select all

$avatar = $uploadrow['avatar'];
$avatarshow = "<img src=\'/avatars/$avatar\' width=\'100\' height=\'100\'>";
Now I am certain the problem is with my syntax in the avatarshow variable. I tested it by typing out the full name of the file, and it is shown just fine. But doing it this way causes problems. Any suggestions on fixing this code?

(I'm not getting any mysql errors)

Re: syntax issues

Posted: Sat Jul 03, 2010 3:55 am
by requinix
Causes problems like... what? Feeling like sharing a bit more information? Maybe some code?