By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,905 Members | 1,783 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,905 IT Pros & Developers. It's quick & easy.

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /var/www/clie

P: 1
Hi all, i have a code. and a fail com up. The fail are: Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /var/www/clients/client28/web102/web/gettags.php on line 15

Here are my code. Pleash help me fast :)

Expand|Select|Wrap|Line Numbers
  1. echo '<img src="http://www.habbo.dk/habbo-imaging/avatarimage?user=<?=$vis['name']?>&amp;img_format=gif&amp;action=&wav&frame=1&gesture=sml&amp;direction=2&amp;head_direction=2&amp;size=s" height="10" width="10">';
Oct 22 '11 #1
Share this Question
Share on Google+
1 Reply


100+
P: 1,059
when you are in <?php ?> tag you don't need to use short tag.
here is some example that will help you
Expand|Select|Wrap|Line Numbers
  1. echo "<img src="http://www.habbo.dk/habbo-imaging/avatarimage?user=
  2. ".$vis['name']."&amp;img_format=gif&amp;action=&wav&frame=1&gest ure=sml&amp;direction=2&amp;head_direction=2&amp;size='' height='10' width='10'>";
  3.  
for short tag example
Expand|Select|Wrap|Line Numbers
  1. <input type='text' value='<?=$Value?>'>
  2.  
Oct 23 '11 #2

Post your reply

Sign in to post your reply or Sign up for a free account.