PDOCrud Join operation

PDOCrud supports both left join and inner join operation. If you want to apply master, detail table operation where master table contains single record and details table contains multiple records, use LEFT JOIN else INNER JOIN.

  
                            $pdocrud = new PDOCrud();
                            $pdocrud->crudTableCol(array("first_name","last_name","user_name","gender"));
                            $pdocrud->joinTable("user_meta", "users.user_id = user_meta.user_id", "LEFT JOIN");
                            echo $pdocrud->dbTable("users")->render();
                            

Users

Showing 1 to 10 of 14 entries

# First name Last name User name Gender Actions
1 Jon Snow jon 0
2 yemqHDGbASghVu hcWntOcErdNAcklhyj QIuDjsqpMkLGUDESEm fVZnYMKEtIa
3 ==MichaelZooge MichaelZooge
4 MichaelZooge
5 ==Aaronkex Aaronkex
6 Aaronkex
7 ==Charlesvirty Charlesvirty
8 Charlesvirty
9 ==Charlesvirty Charlesvirty
10 ==Aaronkex Aaronkex
# First name Last name User name Gender Actions