Welcome Guest, Not a member yet? Register   Sign In
How to select data from joined table
#4

(09-18-2021, 07:04 PM)iRedds Wrote: Move r.id from main query to condition

PHP Code:
if ($to == 'below')
{
    $query->select('r.id')
    -> // etc


That's it. I had something like this in mind, but as the whole select. I didn't that because of a clean code (as good as I can *g). That I can add things to the select part is nice.

Thank you!
Reply


Messages In This Thread
How to select data from joined table - by sprhld - 09-18-2021, 11:27 AM
RE: How to select data from joined table - by sprhld - 09-19-2021, 01:06 AM



Theme © iAndrew 2016 - Forum software by © MyBB