CI4 Multiple Databases join syntax - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: CI4 Multiple Databases join syntax (/showthread.php?tid=89147) |
CI4 Multiple Databases join syntax - dougwolf - 01-16-2024 I have a project where I need to join two tables from different databases. I have seen other threads on this but they always assume the full text name of the second database. My databases are configured in the .env file, then instantiated. My code is as follows. What is wrong with my syntax? I am getting the famous: "Object of class CodeIgniter\Database\MySQLi\Connection could not be converted to string" error. Code: /** I get |