Jump to content

URL link in PHP/MySQL script


jviney

Recommended Posts

I am adding a URL within a table with PHP and a MySQL Database, my string doesn't show all of the URL, it cuts it off.

 

This is the line I am using…

 

echo “<td><a href=" . $row[’venues/venue_a/venue_a.php’] . “>” . $row[’club_id’] . “</a></td>”;

 

It shows in the table, but the link goes to the “first half” of the web page URL , what I placed in the code is the “2nd half” of the URL.

 

Any help would be appreciated

Link to comment
https://forums.phpfreaks.com/topic/111180-url-link-in-phpmysql-script/
Share on other sites

You will probably have to give more information than that, but just to troubleshoot, the first thing you should do is check the generated source and see if the link is actually what you want it to be. If it isn't, see if the link is what you want it to be in your table. If not, check if you are putting the right link in the table.

 

Just out of curiousity, why do you havea  field name that is a path to a file?

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.