I'm building a website that allows users to search for a company based on the name and returns the results in a table. I would then like to link the search results to a dynamic page that provides more details of the company.
I've added the database of companies and built the search function and table based on the following code:
This gives the following results on the site when searching for "Smith":
I'm now trying to link this results table to a dynamic page so that when a row is selected and clicked the user will be taken to a page containing more detailed information about the company.
I've found the following code in the Forum which I think will achieve this:
Unfortunately I'm a world-class beginner at website coding and I have no idea what code to enter for this line as I don't know the syntax for my dynamic page:
Is the code above the correct code to use for what I am trying to achieve (ie linking my search results to a dynamic page)?
I'd also like the information that appears on the dynamic page to appear as a table with the headings along the left-hand side. I can only find tables that have headings across the top and as there are 20 fields of data this is impractical for displaying the information. My current dynamic page just had text fields for the results but this is quite cumbersome:
Sorry this turned into such a long post! I'd be really grateful for some assistance as I'm a little lost with this problem.
Thanks so much in advance,