lucianozanita Posted January 31, 2017 Share Posted January 31, 2017 Hello, I'm in a dilemma actually an impasse, I'm trying to assemble a query in the database with the new database interaction base WHMCS has developed, but I can not find an easy way to do a multiple query on two tables . Using their example, I would also like to select three customfield fields from the currently listed account. Since they are customfield1, customfield2, customfield3, but I have no idea how I can be using the query to do this, would anyone know how to do the same? Here is an example used at this point that only lists the accounts, and needed to list the customfield value of the currently listed account. foreach (Capsule::table('tblclients')->get() as $clientes) { $primeironome = $clientes->firstname . PHP_EOL; $segundonome = $clientes->lastname . PHP_EOL; } 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.