only way i can see you doing that is have a seperate detailed2.cgi page for company info. Then you can do the next bit two ways:
i) have a seperate field inside each link with the id of the company page so that when you display link 45,64 and 532 they all link to detailed.cgi?id=34 sort of thing.
ii) have a seperate table for link to detailed2 relations, so that you have
LinkID Detailed ID
45 34
64 34
532 34
sort of thing.
you then have detailed2.cgi?id=532 but it jumps to the page for 32 (from the table).
not sure which is best, i am quite new to this but these are the ways i can see it being "done".
http://www.ASciFi.com/ - The Science Fiction Portal
i) have a seperate field inside each link with the id of the company page so that when you display link 45,64 and 532 they all link to detailed.cgi?id=34 sort of thing.
ii) have a seperate table for link to detailed2 relations, so that you have
LinkID Detailed ID
45 34
64 34
532 34
sort of thing.
you then have detailed2.cgi?id=532 but it jumps to the page for 32 (from the table).
not sure which is best, i am quite new to this but these are the ways i can see it being "done".
http://www.ASciFi.com/ - The Science Fiction Portal