flemingmike Posted March 2, 2009 Share Posted March 2, 2009 hi, im having a problem putting a picture with a link. i used: <? //Facebook echo"<a href='http://www.facebook.com/pages/manage/promo_guidelines.php#/pages/VGBETTINGcom-Think-you-got-game/57307786049?ref=mf'><img src="images/facebook.gif"></a>"; //End Facebook ?> what am i doing wrong? Link to comment https://forums.phpfreaks.com/topic/147599-solved-picture-with-link-please-help-if-you-can/ Share on other sites More sharing options...
flemingmike Posted March 2, 2009 Author Share Posted March 2, 2009 my error: Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/mash905/public_html/betting/theme/default/html.php Link to comment https://forums.phpfreaks.com/topic/147599-solved-picture-with-link-please-help-if-you-can/#findComment-774850 Share on other sites More sharing options...
premiso Posted March 2, 2009 Share Posted March 2, 2009 You need to escape the double quotes in your string under the img tag. Link to comment https://forums.phpfreaks.com/topic/147599-solved-picture-with-link-please-help-if-you-can/#findComment-774852 Share on other sites More sharing options...
Maq Posted March 2, 2009 Share Posted March 2, 2009 If you use double quotes inside double quotes you have to to escape them. I personally like to use single quotes in double quotes, makes life easier. should be Link to comment https://forums.phpfreaks.com/topic/147599-solved-picture-with-link-please-help-if-you-can/#findComment-774854 Share on other sites More sharing options...
flemingmike Posted March 2, 2009 Author Share Posted March 2, 2009 wicked.,.. thanks, it worked. i knew it would be something stupid... Link to comment https://forums.phpfreaks.com/topic/147599-solved-picture-with-link-please-help-if-you-can/#findComment-774855 Share on other sites More sharing options...
flemingmike Posted March 2, 2009 Author Share Posted March 2, 2009 how do i mark as solved? Link to comment https://forums.phpfreaks.com/topic/147599-solved-picture-with-link-please-help-if-you-can/#findComment-774857 Share on other sites More sharing options...
premiso Posted March 2, 2009 Share Posted March 2, 2009 Bottom left hand corner above the quick reply. Link to comment https://forums.phpfreaks.com/topic/147599-solved-picture-with-link-please-help-if-you-can/#findComment-774861 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.