Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. select * form padre INNER JOIN hijos on padre.pnt_id=hijos.id_pnt;
  2.  
  3. padre hijos
  4. +-----+----------+------+-------+ +-----+----------+-------+
  5. | id | pnt_id | info |infotwo| | id | id_pnt |n_child|...
  6. +-----+----------+------+-------+ +-----+----------+-------+
  7. | 1| 7| home | big | | 5| 7| joan |
  8. +-----+----------+------+-------+ +-----+----------+-------+
  9. | 2| 8| work | fat | | 3| 7| luci |
  10. +-----+----------+------+-------+ +-----+----------+-------+
  11. | 3| 9| soft | thin | | 6| 8| troy |
  12. +-----+----------+------+-------+ +-----+----------+-------+
  13.  
  14. print_r($parents);
  15.  
  16. $parents = arrar (
  17. info -> "home",
  18. infotwo -> "big",
  19. data_child -> arrar (
  20. n_child -> "joan",
  21. n_child -> "luci"
  22. )
  23. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement