Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
How to JOIN table(s) properly
  • Hi, I want to join table(s) using query builder. Which one is the recommended way to join table(s)?

    // Join a table
    $query->join('profiles');
    $query->on('users.id', '=', 'profiles.user_id');

    or

    // Join a table
    $query->join('profiles')->on('users.id', '=', 'profiles.user_id');

    Thank you in advance +
  • They are completely identical.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion