NYCPHP Meetup

NYPHP.org

[nycphp-talk] dynamic jump menu from flatfile

Daniel Convissor danielc at analysisandsolutions.com
Mon May 3 10:17:12 EDT 2004


Yuri:

On Mon, May 03, 2004 at 10:09:36AM -0400, yury at heavenspa.com wrote:
> Dan, can you please reply with a simple/easy to follow example
> thanks

See http://nyphp.org/content/presentations/bikesummer/navigation.php
and the frame after it as well.

The example doesn't show the foreach loop used to extract the data from
the array and print out the stuff, but here's a summary:

foreach ($Nav1 as $Page => $Title) {
   echo '<a href="' . $Page . '/' . $Page . '.php">' . $Title . "</a>\n";
}

--Dan

-- 
 T H E   A N A L Y S I S   A N D   S O L U T I O N S   C O M P A N Y
            data intensive web and database programming
                http://www.AnalysisAndSolutions.com/
 4015 7th Ave #4, Brooklyn NY 11232  v: 718-854-0335 f: 718-854-0409



More information about the talk mailing list