Jump to content

Link hanging from a string


myotch

Recommended Posts

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?

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/205361-link-hanging-from-a-string/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.