jviney Posted June 20, 2008 Share Posted June 20, 2008 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 More sharing options...
lemmin Posted June 20, 2008 Share Posted June 20, 2008 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? Link to comment https://forums.phpfreaks.com/topic/111180-url-link-in-phpmysql-script/#findComment-570639 Share on other sites More sharing options...
jviney Posted June 20, 2008 Author Share Posted June 20, 2008 Thank you for responding. The URL is what I want (I tried putting the entire URL in...http://www etc and that didn't work). What I am trying to do is within the table, click on the Club ID and it takes you to the webpage in the URL about that venue. Link to comment https://forums.phpfreaks.com/topic/111180-url-link-in-phpmysql-script/#findComment-570657 Share on other sites More sharing options...
lemmin Posted June 23, 2008 Share Posted June 23, 2008 Can you should the html source that it is generating and how it s different from what you want it to be? Link to comment https://forums.phpfreaks.com/topic/111180-url-link-in-phpmysql-script/#findComment-572299 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.