Pattern matching a mysql result with an array
Posted: Mon Oct 31, 2005 11:16 am
Hi there - I have an array of topics and a sql query that pulls out a series of subject topics related to a course in my database.
I want to create a select box that contains that array of topics and then sets to Selected each of those that match the resultset. The aim is that this will allow an editor to show which topics a course is assigned too and I can then select more or deselect current ones.
any ideas would be great
cheers
frank
I want to create a select box that contains that array of topics and then sets to Selected each of those that match the resultset. The aim is that this will allow an editor to show which topics a course is assigned too and I can then select more or deselect current ones.
any ideas would be great
cheers
frank