I'm working on a web page in php with a mysql DB. I'm trying to list
some products with some other information but I'm having trouble tying
them together. Is there a way to force a very specific order to be
returned? What I need to be able to do is have a query like
"select * from products where prodID = 'thing1' or prodID = 'thing2'
or prodID = 'thing3'...
but I need it to come back in that EXACT order, product matching
thing1 first thing2 second and so on.
Any ideas?
Thanks,
Tim
some products with some other information but I'm having trouble tying
them together. Is there a way to force a very specific order to be
returned? What I need to be able to do is have a query like
"select * from products where prodID = 'thing1' or prodID = 'thing2'
or prodID = 'thing3'...
but I need it to come back in that EXACT order, product matching
thing1 first thing2 second and so on.
Any ideas?
Thanks,
Tim
Comment