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? Quote 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 Quote 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. Quote 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 Quote 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... Quote 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? Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.