Hi Donna!
It’s nice to hear from you again. As I said to my mail, the first thing that comes to my mind is add_select_box's order field parameter, if your field is called make_year set the parameter like "make_year ASC" or "make_year DESC". Pls give it a try and let me know.
I didn't get - or somehow missed your email - so that's why I posted again.
Thank you - this worked
I'm not sure what all the columns mean yet - do you have any documentation on this ?
We're also having another bit of a mix up - I didn't think the program would work this way - but it seems to
If we pick a Make - BLUE
and then Model SQUARE
Year 2008
It returns all the BLUE/SQUARE/2008 but it also returns RED/SQUARE/2008's as well
now normally - with cars anyway - the model name is unique to that make - but in this case one model is called "PickUp Truck" and a few of the Makes have models like that - so we pick them all up.
We're going in to give them all uniqie names - but is there any other way around this ? Im thinking in the WHERE clause
say where "MAKE = $MAKE" ... to make sure we get that (I thought the program automatically did that but it doesn't seem to)
Where could I add the additional WHERE CLAUSE ? (Even if it's hard wired to the code not a variable that would be fine)
what i had in mind when i was building this, was normalized databases.
Having uniqed ids.
let me understand your tables structure.
you have a table for makes eg
make
-------
ford
mazda
one for models
make model
---------------
ford ford1
ford ford2
mazda m1
manda pickup
and a 3rd one for items
make model year
-------------------------
ford ford1 2008
ford ford1 2004
ford ford1 2003
ford pickup 2003
ford pickup 1999
mazda m1 2004
mazda pickup 2005