unemployment Posted June 26, 2011 Share Posted June 26, 2011 Where is my syntax error? echo '<img src=\"/assets/img/avatars/defaultuser.jpg\" class=\"avatar extrasmall f_left clear mrss\" title=\"${r['associate_name']}\" alt=\"${r['associate_name']}\" />'; Quote Link to comment https://forums.phpfreaks.com/topic/240449-syntax-error/ Share on other sites More sharing options...
Pikachu2000 Posted June 26, 2011 Share Posted June 26, 2011 Enclose the entire string in double quotes, not single quotes. Quote Link to comment https://forums.phpfreaks.com/topic/240449-syntax-error/#findComment-1235032 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.