myotch Posted June 20, 2010 Share Posted June 20, 2010 Having a time of this. Currently, I have a called string from the MYSQL db which echos all the customer contact information. Here is the line I'm having problems with. echo "Website: <a href=\"" .$row["biz_site"]. "\" target=_blank>" .$row["biz_site"]. " </a><br />\n"; Because some of our listers have vulgarly long URL's, I'd like to change the visible link to something short and sweet: Click here for website. However, when I change it to this: echo "Website: <a href=\"" .$row["biz_site"]. "\" target=_blank>" Click here for website " </a><br />\n"; I get errors, such as "Expecting ';" or '.'" Any advice? Quote Link to comment https://forums.phpfreaks.com/topic/205361-link-hanging-from-a-string/ Share on other sites More sharing options...
Alex Posted June 20, 2010 Share Posted June 20, 2010 echo "Website: <a href=\"" .$row["biz_site"]. "\" target=_blank>Click here for website</a><br />\n"; Quote Link to comment https://forums.phpfreaks.com/topic/205361-link-hanging-from-a-string/#findComment-1074754 Share on other sites More sharing options...
myotch Posted June 20, 2010 Author Share Posted June 20, 2010 echo "Website: <a href=\"" .$row["biz_site"]. "\" target=_blank>Click here for website</a><br />\n"; BEAUTIFUL! SIMPLE! PERFECT! SOLVED! Quote Link to comment https://forums.phpfreaks.com/topic/205361-link-hanging-from-a-string/#findComment-1074760 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.