Forum Moderators: coopster
I would like to adapt this DHTML menu (or something similar) script so that the menu items come from a MySQL database:
[dynamicdrive.com...]
Any suggestions on how this could be done?
Thanks
1. The Javascript is embedded in the page and that page is parsed as PHP. No problem there. The browser will have no idea that PHP was used to generate the Javascript.
2. The Javascript comes from an external file. In this case the server will not usually be set up to run the .js file through the PHP parser. This is no big deal, as you can set up to send anything, including JS files, through the PHP parser.
For more info on parsing JS files as PHP, see message 8 from StupidScript in this thread:
[webmasterworld.com...]