|
|
|||||||||
|
|||||||||
|
|||||||||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
|
|
#1
|
|||
|
|||
|
Recursive Function gone West!!
Hello,
I've got this function called maketree which passes two values. I know I've posted a query similar, but now making progress with this!! PHP Code:
Whats happening here is that it displays: PHP Code:
but it should display: PHP Code:
Contents of table..... PHP Code:
Where am I going wrong with the function?? Any assitance greatly received... If I figure it out before anyone does then I will post up the correct version. Thanks all |
|
#2
|
|||
|
|||
|
Hi,
the line PHP Code:
should be PHP Code:
I think. Otherwise, your while( list( etc etc) ) loop will only ever show the first item retrieved from the database because you return from the function after displaying it. Sam |
|
#3
|
|||
|
|||
|
Thanks!!
Top Man Sam....
Much appreciated Ozzie |
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > Recursive Function gone West!! |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|