syntax issues
Posted: Sat Jul 03, 2010 2:19 am
I'm having a slight problem setting an img tag in a variable. This variable will be called later in the page.
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)
Code: Select all
$avatar = $uploadrow['avatar'];
$avatarshow = "<img src=\'/avatars/$avatar\' width=\'100\' height=\'100\'>";
(I'm not getting any mysql errors)