Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => Images

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

images php coding issues or problems here.

Moderators: macek, egami, gesf

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

Postby valleysboy » 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

Re: Syntax wrong in echo image - T_STRING, expecting ',' or

Postby valleysboy » 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>';
valleysboy
New php-forum User
New php-forum User
 
Posts: 10
Joined: Thu Jan 19, 2012 9:04 am


Return to PHP coding => Images

Who is online

Users browsing this forum: No registered users and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron