• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dealing with parents and children in databases

#1
[eluser]zscott[/eluser]
Hi,
I have a single table database structure that I'm trying to manage through PHP. Each record is a container that could have other records within it. So there is an auto-incrementing id for the record that is associated to sub records via the parentid column. Essentially 1 record could have 1 child that has children that has many children, and I need a way to find all them kids and kill em.

Does anyone have any ideas/ways I could do this with some PHP magic?

Please help :down:


Messages In This Thread
Dealing with parents and children in databases - by El Forum - 07-16-2007, 03:27 PM
Dealing with parents and children in databases - by El Forum - 07-16-2007, 05:24 PM
Dealing with parents and children in databases - by El Forum - 07-16-2007, 05:46 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.