PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Output the query to the screen, then run the query via the command line - to see if the query actually is returning what you expect. If that doesn't show you the problem, call print_r() on $cloth_data to see if it is what you expect.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
and yeah, I just got |g| which is what I expected >.<
Ahh found the problem ^^ each product has 4+ version >.< one of them was still blank, so the whole thing was getting its knickers in a twist, I got || on that page, put a g in, all working now