korbenmxli Posted March 23, 2010 Share Posted March 23, 2010 new to PHP but make advances.... i display my table in a grid and all work fine... i have a field with url adress or links to other pages in my site..... its possbible to display that field in my grid but like real hyperlinks?? i mean do click on it and go to the page?? i mean... like any other link ... let say .... subject description more info -----------------|---------------------------------------------|------------------- WORD calendar templates bla bla templates here <-- this field must be a link tnx Quote Link to comment https://forums.phpfreaks.com/topic/196209-links-in-query-results/ Share on other sites More sharing options...
trq Posted March 23, 2010 Share Posted March 23, 2010 Post the code that displays these results. Quote Link to comment https://forums.phpfreaks.com/topic/196209-links-in-query-results/#findComment-1030377 Share on other sites More sharing options...
dooper3 Posted March 23, 2010 Share Posted March 23, 2010 Are you actually displaying your table data to the public in an un-edited way like that? If so that is quite bad practice; especially if you have an incrementing unique index on the table (i.e. and ID field). Anyway. You can display the field contents as real hyperlinks if they are stored as real hyperlinks in the database. So that field would contain for example: <a href="/page/some-template" title="See Template">templates here</a> That way when you show the table contents, the data will be interpreted as HTML and a hyperlink will be shown. Quote Link to comment https://forums.phpfreaks.com/topic/196209-links-in-query-results/#findComment-1030378 Share on other sites More sharing options...
korbenmxli Posted March 23, 2010 Author Share Posted March 23, 2010 tnx dooper i didn't know i can record info in html format.... i did and works fine even i add the <..... target=_blank> im building of site of my own with documents, manuals and tips bout software thats y i want links.... tnx again Quote Link to comment https://forums.phpfreaks.com/topic/196209-links-in-query-results/#findComment-1030574 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.