i did search the tutorials and the internet but i´m afraid my question is too specific to be able to find a solution easily. and it might not be worth reading the whole manual, as i might eventually find out that what i´m trying to do cannot actually be done with php and the manual didn´t refer to it. well, i´ve started learning php not long ago and I use it for building glossaries on-line. and here it goes:
i think the best way to explain this is getting down to a concrete example, even if it gets longer to read. this is about interlinked dynamically generated webpages (if this is the right way to call them), in particular about a terminological dictionary on-line. if you go to http://dvtg.f2o.org and search for, say, "chinela", you should get to http://dvtg.f2o.org/paxina_do_termo.php?id_termo=270 where you have the definition of the term, as well as other (now irrelevant) information. the first word of the definition, called a descriptor, is usually a broader term, which also exists in the database the information is being retrieved from ("zoca" in this case: "chinela" is a type of "zoca"). so far so good
the thing is, it would be excellent to get a link on that broader term, so that to see the terminological information relating to it you'd just have to click on it. now, if you want to see the terminological informaition related to "zoca", you have to go back to the search tool and type "zoca" and searc. some sites, like e.g. Webopedia, use the traditional way of interlinking pages (see for example http://www.webopedia.com/TERM/M/machine_language.html), that is, writing in longhand the word within the <a> tag. I think it works similarly for XML. but this is, of course, not a feasible way to make links on words on a dynamically generated page, i.e. words which come from the database and actually do not exist on a html page. what I actually want to do is display a link of every word within the definition which is a term in the database, that is, which is assigned a record
the question is:
i´d like to know if there's a way to do this with php and if there is, you don´t need to explain in detail how it works, it would be perfect if you could just tell me the fonction or the relevant section in the documentation so i could narrow my search much more. just in case it is of any help i´m using mysql and apache
thanks a lot again for your help and patience