I'm fairly new to this whole PHP business and not a regular programmer... but I've been making good use of Dreamweaver MX to get online database stuff working.
I'm currently looking into the best methods to search a database and one of the things I looked into is creating 'search forms' using drop-down boxes populated from within the database... I'm using PHP to filter out duplicates and then sort the list and I've got it to the point where it works very much like Excel's autofilter.
I actually envision it being used to filter down infrequent values to speed up searching... So for example in a search for a university tutor, having a page that filters by faculty and department and then carrying out the search for a particular name on the results... maybe I'm barking up the wrong tree?
The obvious problem with this method is that as soon as the database starts getting larger the whole thing is likely to grind to a halt as the PHP does its work to populate the drop-downs.
A colleague suggested that indices might help... If I understand correctly setting a column as an index effectively produces a separate hidden table with an equivalent 'column' with duplicates removed and the values sorted - which is then used to optimise searches. (Please correct me if I'm wrong!)
My question is: is there a way of importing the values in the index to populate my drop-downs?