Forum Moderators: coopster
$query = "SELECT * FROM product WHERE product.models LIKE '%,411' OR product.models LIKE '411,%' OR product.models LIKE '%,411,%' OR product.models LIKE '411' ORDER BY product.productgroup";
For some reason I'm not seeing, when I add the second table I need to order by I get strange results.
[edited by: GGR_Web at 3:08 pm (utc) on Feb. 10, 2009]
---
t1.(product)
partno name model productgroup description price brand
suggestions groups pic saleonline general generaltext
subarumodels
---
t2(productgroup)
id name parent notes pic parent2 suggestions subaru
---
The productgroup from t1 is a number that relates to the id in t2. I need to group those id numbers under their respective parents (these are numbers that relate to the table id - the parent information is not stored on a separate table)
Apologies for the time taken to reply.
I'm not really sure what schema is relevant - I'm still learning this. Just ask if you need anything else.
[edited by: GGR_Web at 1:40 pm (utc) on Feb. 16, 2009]