This topic is locked

Link from one view page to another Master detail table

3/20/2009 3:21:54 PM
PHPRunner General questions
M
mmponline author

I need to put a hyperlink from a view page to a related Master details page to show the pictures related to the record of the view page.
I found and edited this link from the cars template, but it does not work correctly:

<A href="MoreViews_list.php?mastertable=StandListmasterkey1={$show_id}">More photos</A>


The link opens the table but shows all records, and not only related ones

http://bateleurestate.co.za/batdb/MoreViews_list.php?mastertable=StandListmasterkey1=


I have an idea it has something to do with old version vs new version or oldinclude vs include.
Who can help please?

J
Jane 3/23/2009

Hi,
you need to define and fill $show_id variable manually on the View page: Before display event.

Actual code is dependent on PHPRunner version.

M
mmponline author 3/23/2009

I'm usung V5. What would the code be please.

I don't understand, but on the cars template, there is no such event in the before display of this page, but still the code works fine there.
Thanks for your help!

J
Jane 3/24/2009

Please publish your project on Demo Account and open a ticket at http://support.xlinesoft.com sending a URL to your pages.

M
mmponline author 3/24/2009

Uploaded and sent. Thanks for your help...