Ran across this on the b3ta newsletter: When I was a travelling sales rep, I used to be sent all over the country to the mostÂ god-forsaken places on earth. To combatÂ this, I devised a somewhat ingenious solution: I stayed at home. My boss would regularly phone me while I was ‘in my car’ to check how I doing, so I recorded a sample of my car engine noise, complete with a couple of...
This lets you create a nested multi-level category menu through PHP and mySQL. Using a recursive function, we can display an unlimited number of nested categories, for a drop down box that might look like this:
For the PHP newbie, checkboxes and/or multiple select listboxes can be baffling in the beginning. It’s actually not very hard at all, and is often one of the PHP newbie’s first experience with arrays.