Populate a dropmenu with database values

12 posts by 4 authors in: Forums > CMS Builder
Last Post: January 19, 2009   (RSS)

By Dave - January 13, 2009

Hi Sev,

I think I can write you a couple lines of code to only show each type once. Can you email me CMS and FTP login to dave@interactivetools.com so I can test it on your server. Email, don't post login details.

Hope that helps, let me know if that works for you.
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] Populate a dropmenu with database values

By sev - January 19, 2009

thanks dave for helping me with this

in case others are looking for this solution the following code was added which tracks which types have already been shown and only shows each once:

<?php if (@$alreadyShown[ $record['type'] ]++) { continue; } ?>

cheers! [:)]