Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- select * form padre INNER JOIN hijos on padre.pnt_id=hijos.id_pnt;
- padre hijos
- +-----+----------+------+-------+ +-----+----------+-------+
- | id | pnt_id | info |infotwo| | id | id_pnt |n_child|...
- +-----+----------+------+-------+ +-----+----------+-------+
- | 1| 7| home | big | | 5| 7| joan |
- +-----+----------+------+-------+ +-----+----------+-------+
- | 2| 8| work | fat | | 3| 7| luci |
- +-----+----------+------+-------+ +-----+----------+-------+
- | 3| 9| soft | thin | | 6| 8| troy |
- +-----+----------+------+-------+ +-----+----------+-------+
- print_r($parents);
- $parents = arrar (
- info -> "home",
- infotwo -> "big",
- data_child -> arrar (
- n_child -> "joan",
- n_child -> "luci"
- )
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement