Forum Moderators: wheatpenny Forum Coordinators: Anim8dtoon
Community Center F.A.Q (Last Updated: 2024 Dec 11 2:41 pm)
@Male_M3dia @shvrdavid If I can interrupt here I think the OP wimvdb was asking for a Poser filter and it wasn't a call out for the resumes and qualifications of interested parties. It is a genuine request and neither one of you guys are helping by fighting because it puts other members off commenting and showing support, hardly fair to the OP. I have asked once already to get the thread back on track, Kristi has asked and for the record both of you are derailing a thread arguing about who is derailing a thread.
Kristi has stated that this original suggestion has already been discussed and something will be implemented so unless it is on topic with suggestion/ideas please refrain from posting.
- Johnny G
"Try animation to get things moving"
lpr001@renderosity.com
This site uses cookies to deliver the best experience. Our own cookies make user accounts and other features possible. Third-party cookies are used to display relevant ads and to analyze how Renderosity is used. By using our site, you acknowledge that you have read and understood our Terms of Service, including our Cookie Policy and our Privacy Policy.
duanemoody posted at 4:31PM Sat, 25 June 2016 - #4273627
Well, it would work if the SQL query didn't concatenate all checkmark categories as ANDs, Duane. But because it does, it only matches products where the developer checked all the same software titles the user's query did… which won't be possible with older products where newer backwards compatible versions didn't exist yet.
Whoops.
Let's assume Rendo's database is storing a product's compatible software titles in a single column (e.g. comma delimited), because that's less hairy to maintain than continually adding new columns for new products that only contain a boolean value. Where what we as users want gets more complicated is because the SQL query sent to the backend now not only has to split off all software-related checkbox values from the main query statement and make it its own WHERE clause, but you're now having to match a set of values against a column containing a set of values where at least one of the query's set has to be in the column's set. And SQL wasn't designed to match sets.
Fortunately someone else has already had to deal with this problem and solved it, rather elegantly:
http://stackoverflow.com/a/26195280/1574945
Granted, the software title values replacing val1, val2… should be character-escaped to not foul up the regex, but there's already a function for that in PHP.
Again, I'm assuming the database doesn't have ten separate columns corresponding to each checkmark. If it actually does have individual columns for each product, then just write a WHERE clause chaining ten separate productname-to-column matches using OR.
Apologies for meddling.