join with multicolumn selector

join with multicolumn selector

Mike StoreyMike Storey Posts: 25Questions: 7Answers: 0

I have a need to do an join, where id=value and tag=0, but the ->leftJoin method does not appear to support the "and" operator in the where clause. Is there another way to accomplish this? (Sorry, new to PDO)

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Answer ✓

    Unfortunately no - sorry. The PHP and .NET libraries currently can do a join on a single option only. Would adding where condition on tag=0 match what you need? It isn't quite the same thing, but it might work for you?

    Allan

  • numberonenumberone Posts: 86Questions: 0Answers: 0

    I have a new php library. This might work for you if you interest.

    https://github.com/n1crack/Datatables

This discussion has been closed.