This topic is locked

event link to a record in another table

7/29/2010 7:07:40 AM
PHPRunner General questions
R
robmid author

I have added this to html code that links to 'bikes_view' from a page called 'one_way' .
<A href="bikes_view.php?editid1={$custom_link}">View

Bike</A>
and below is code for EVENTS - List Page: after record processed for (one_way) page.
$record["custom_link"]=$data["id"]; I have also tried $record["custom_link"]=$data["bikes"]; without success.
How do I select 'bikes' from the 'one way'table?
To summarise: I have a list of motorcycles in their own table called 'one_way' and the 'make' was added to the record from a 'make' table.
I need to have a link to a specific motorcycle in a 'bikes_view' page which also gets its 'make' that was added to the record from the 'make' table.
Thanks

A
ann 7/29/2010

Rob,
you need to create an additional column and add your html code to this column.

Also you could use only key column as custom_link (usually it's Id).
If it doesn't help please publish your project on Demo Account and open a ticket at http://support.xlinesoft.com sending a URL to your pages along with instructions on reproducing this error. 'Demo Account' button can be found on the last screen in the program.