Hi, all. I know there have been alot of threads regarding the ability to search through multiple databases. I have been reading all of them.
However, I would like to ask if perhaps a simple search would be possible. I have about 4 databases all have a different number of fields. But their is one common field called "Name".
I do not believe that my databases fit into the category of relational databases because they are not related to one another at all.
I was wondering how you could use the search query section to loop one by one through each of the databases looking for the "Name" and displaying the rest of the fields of each database along with it.
To make things easier, I should specify that the search query is the only thing I wish to modify. The databases are premade and do not change, therefore there would be no need to modify the add_records and modify_records section.
I assume in the query section or in the view_records section, I would first have to 'define' the first database, then perform the search, 'define' the second database, and perform the search, etc. They the results would be displayed.
I had read on one of the posts by JPDeni, (I can't seem to find it now), that all of the results of the searches would have to be displayed on one page. That's no problem for me.
My question is where would be the best section of perform the search, from the view_records in db.cgi or the view_records in the html.pl
Then how exactly would you define the fields of each database, and then place a call to the query with the "Name" search string. and loop again to the next database.
I hope I have made things clear of what I'm trying to do
--------------------------
A second option I was thinking of was have check boxes for the search, then seaching each database specified.
I saw a post that discussed this option using javascript, however, it opened up a new browser window for each of the databases, something I wish to avoid.
In this second option of checkboxes would it be possible to search through the first database and and the bottom of the results page have a button that states "Click to search your next chosen database" and so on, until all the selected databases have been queried and displayed.
----------
phew, I hope I explained my situation. And looking forward for any input or code (yes, the code would be great :) on either of the two desired options for my simple(?) multiple database search.
Thank you
Trev R
However, I would like to ask if perhaps a simple search would be possible. I have about 4 databases all have a different number of fields. But their is one common field called "Name".
I do not believe that my databases fit into the category of relational databases because they are not related to one another at all.
I was wondering how you could use the search query section to loop one by one through each of the databases looking for the "Name" and displaying the rest of the fields of each database along with it.
To make things easier, I should specify that the search query is the only thing I wish to modify. The databases are premade and do not change, therefore there would be no need to modify the add_records and modify_records section.
I assume in the query section or in the view_records section, I would first have to 'define' the first database, then perform the search, 'define' the second database, and perform the search, etc. They the results would be displayed.
I had read on one of the posts by JPDeni, (I can't seem to find it now), that all of the results of the searches would have to be displayed on one page. That's no problem for me.
My question is where would be the best section of perform the search, from the view_records in db.cgi or the view_records in the html.pl
Then how exactly would you define the fields of each database, and then place a call to the query with the "Name" search string. and loop again to the next database.
I hope I have made things clear of what I'm trying to do
--------------------------
A second option I was thinking of was have check boxes for the search, then seaching each database specified.
I saw a post that discussed this option using javascript, however, it opened up a new browser window for each of the databases, something I wish to avoid.
In this second option of checkboxes would it be possible to search through the first database and and the bottom of the results page have a button that states "Click to search your next chosen database" and so on, until all the selected databases have been queried and displayed.
----------
phew, I hope I explained my situation. And looking forward for any input or code (yes, the code would be great :) on either of the two desired options for my simple(?) multiple database search.
Thank you
Trev R