Okay, so on this website I'm working on I'm setting it up similar to PHPnuke. If anyone's worked with phpNuke before, you know that it sets up tables specifically for categories, and topics, etc, complete with an ID for each entry.
I'm doing something similar.
I have a genres table, which is uniqued by having a gid (genre id). I also have sub-genres, which are uniqued by having a sid (sub id). But, when somone in the admin section adds a new sub-genre to the system, they also pick which main genre it goes into.
So, I'm wondering if there's an easy way to take the values from the genres table, load up a select box to pick which genre a sub-genre goes into with id's translated into its title, then when the new query gets sent into the sub-genre table, the value that goes into the gid for its row is the corresponding id number from the genre table (whew).
It's kinda hard to spit out, but right now I'm trying to visualize how I would program this and all I see are line after line after line after line after line of code. I'm hoping to avoid that, and hoping you guys understand what I mean. 😕