Syntax wrong in echo image - T_STRING, expecting ',' or ';'

images php coding issues or problems here.

Moderators: egami, macek, gesf

Post Reply
valleysboy
New php-forum User
New php-forum User
Posts: 10
Joined: Thu Jan 19, 2012 9:04 am

Mon Feb 20, 2012 9:00 am

Getting a T_STRING, expecting ',' or ';' in the following code.... cant think of where, help much appricated!

Code: Select all

                if($image_path!== "") 
                        {
                        echo '<a href="'.(empty($website) ? '&nbsp;' : $website).'"><img src="'.$image_path.'" alt="'.$org_name.'" title="'.$org_name.'" height="" width="" style="float: right; margin:0 5px 0 0;" ></img></a>'<br style="clear:right"/></a><br/>';
                        }

valleysboy
New php-forum User
New php-forum User
Posts: 10
Joined: Thu Jan 19, 2012 9:04 am

Mon Feb 20, 2012 9:05 am

Okay have a solution - changed the offending line....

Code: Select all

echo '<div style="float:right"><img src="'.$image_path.'" alt="'.$org_name.'" title="'.$org_name.'" height="50%" width="50%"/></div>';

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests