ident Posted September 15, 2009 Share Posted September 15, 2009 I only started messing with php last night so no next to nothing echo '<img src="'$pic' "width="150" height="150" /><br />'; I'm displaying a random image Parse error: syntax error, unexpected T_VARIABLE, expecting ',' or ';' in /var/www/simplecoders.com/htdocs/Upload.php on line 80 Link to comment https://forums.phpfreaks.com/topic/174309-solved-any-one-see-anything-wrong-with-this-displaying-an-image/ Share on other sites More sharing options...
Bricktop Posted September 15, 2009 Share Posted September 15, 2009 Hi ident, You're missing the closing " on the img src. Change your code to: echo '<img src="'.$pic.'" "width="150" height="150" /><br />'; Link to comment https://forums.phpfreaks.com/topic/174309-solved-any-one-see-anything-wrong-with-this-displaying-an-image/#findComment-918848 Share on other sites More sharing options...
ident Posted September 15, 2009 Author Share Posted September 15, 2009 nice 1 Link to comment https://forums.phpfreaks.com/topic/174309-solved-any-one-see-anything-wrong-with-this-displaying-an-image/#findComment-918856 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.