This topic is locked

Want to Display results as HyperLinks.

12/13/2011 8:53:01 PM
PHPRunner General questions
J
joomdev author

Hi,
I found this post http://www.asprunner.com/forums/topic/6317-list-page-hyperlinks-to-view-page/

but it seems old and does not work as I was hoping.
I need help in getting a simple list of "names", that can be clicked on to see their full details.
So my first query is selecting names only, but when i click one of the names it does a full query on that name only.
Can anyone help?
Thanks.

S
stiven 12/14/2011

what do you mean a full query on that name? do you have the code you use so we can see it?

J
joomdev author 12/14/2011



what do you mean a full query on that name? do you have the code you use so we can see it?


Sorry i am not being clear,
When the page is loaded, I just want a list of names (as hyperlinks). when I want to be able to click on those names to see the rest of the fields associated with that row of data.

e.g.



Then i click on David for example and i opens up all is data.

C
cgphp 12/14/2011

Post the code you are using.

S
stiven 12/14/2011

still is not to clear what i understood you need to go to the list page and set the field as custom view there you can set hyperlink to the values


$value = '<a href="tablename_view.php?editid1='.$data['keycolumnid'].'">'.$value.'</a>'; // replace tablename with the actual table name where the details of the name are stored and replace keycolumnid the the actual key id of the table..




Sorry i am not being clear,
When the page is loaded, I just want a list of names (as hyperlinks). when I want to be able to click on those names to see the rest of the fields associated with that row of data.

e.g.

J
joomdev author 12/14/2011

Many thanks for replying. In the end I decided to read through a few PHP books and do it from scratch. Would you believe I managed to complete the entire project in an entire day!!! Quite proud of myself!