![]() |
|
#1
|
|||
|
|||
Multiple Database searchI would like to search multiple databases that have different passwords etc. Is there a way that I can search different databases and have the results ordered together? I suspect it can be done but I am unsure of how.
|
|
#2
|
||||
|
||||
|
Oh wow! What a strange idea! Did you consider doing the queries for each, storing the results in a temp table? It does sound convoluted just writing this suggestion down!
![]() __________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
|
#3
|
|||
|
|||
|
The reason I ask is that each sub domain will have a site and database with the same tables in. Each will display the relevant data from their database on their sub domain. What I also want to do is display all the contents from all the databases as if it was one site. Confusing I know but ideal if I/someone can work it out.
|
|
#4
|
||||
|
||||
|
Have you considered just using ONE table and adding a subdomain_id column to allow access to each sub domain to just their records?
__________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
|
#5
|
|||
|
|||
|
Well to be honest the way my databases are set on my server I can access across domains which is what I will actually be doing. What I have thought is that when the entries are added they submit to 2 databases (their own plus my central database) but this will involve more work in changing the admin sections of my script which is pretty time consuming. :-(
|
|
#6
|
|||
|
|||
|
I have now managed to connect to 2 databases with the same pass but I am struggling to UNION the results. I am getting close but just failing at the last step. My code is :
Quote:
and the error is : Quote:
Anybody any ideas where I am going wrong? |
|
#7
|
||||
|
||||
|
Wow, yeah UNION! It's been a while since I last used a "union", but what are those ",$db" and ",$db2" stuff?
__________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
|
#8
|
|||
|
|||
|
Quote:
Nope that doesnt seem to work. I think the connection is ok but the actual query is incorrect. |
|
#9
|
|||
|
|||
|
I think I may have to change tact on this one
What is the maximum tables a database can hold? The way I plan to set this up means approx 400-500 tables with about 10 rows in each (searched at smaller intervals) and 1 table with about 10,000 rows (searched at a very high rate). Is this feasable, impossible or just another stupid idea? |
|
#10
|
||||
|
||||
|
Quote:
Anyway, I was asking about the commas in my last reply, why are they there? __________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
Recent GIDBlog
2nd Week of IA Training by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Read a .html file, check that file for links | salemite | C Programming Language | 10 | 17-Jan-2008 07:56 |
| weird search problem!! | JUNK KED | Open Discussion Forum | 3 | 11-Oct-2003 00:48 |
| How a search engine really works (In english) | jrobbio | Open Discussion Forum | 0 | 06-Jul-2003 17:13 |
| Search Engine Positioning 101 and 201 "How To" Tips... | 000 | Search Engine Optimization Forum | 0 | 29-May-2003 10:34 |
| [class] 404 search function code | jrobbio | MySQL / PHP Forum | 6 | 22-Apr-2003 09:32 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The