I am trying to create a 3 level menu structure using php .
My question is.
I have an if else conditional, and in each of the resultant code blocks I need a do ..while loop, that contains it's own if else statements
if (condition1) {
do if (condition a){item 1} else {item2}
while (conditionx)}
elseif (condition2)
{
do {if (conditiona ){item 3} else {item4}
while (conditionx)}
}
I have tried this, but seem to get syntax errors everywhere. I have realised I am out of my depth.
Anyone got an idea how I should put this? I am not looking for anyone to write the code for me, just point me in the right direction.
thanks