[eluser]danmontgomery[/eluser]
You're executing 3 queries, and the end result is that you still have to use $this->db->query().
[quote author="Harshadewa" date="1285440541"]
Quote:Active record doesn’t support UNION, so you’d just be using $this->db->query()
when you say $this->
db->query(), its only connecting to 1 database, right?
How can I include 2 databases' tables in one statement like that?[/quote]
Sorry, I never saw this.
You make a connection to a mysql server, not a database. The database is selected after you make the connection. As long as the user you're connecting with has permission in both databases, you can perform a union on tables across databases using the
database.
tablename method I described above.