Ok, I think I have missed a group or something, basically what I need to add but dont know how is how do I do I make offers add rows or join them.
here is my query
SELECT * FROM approved_business, business_stores, Real_Cash_Offers
WHERE approved_business.id = business_stores.business_id
AND Real_Cash_Offers.storeid IN (business_stores.storeid)
ORDER BY `approved_business`.`id` ASC
here is the output
1249 Jaggers Hair and Beauty 2012-01-22 19:11:05 1249 1 6139646071 112 Bridge Street Eltham 1 3095 Let Jagger Hair and Beauty set you up with the hot... 1372 1 50|5 2012-01-22 19:11:05
1249 Jaggers Hair and Beauty 2012-01-22 19:11:05 1249 1 6139646071 112 Bridge Street Eltham 1 3095 Let Jagger Hair and Beauty set you up with the hot... 1372 1 100|10 2012-01-22 19:11:05
1249 Jaggers Hair and Beauty 2012-01-22 19:11:05 1249 1 6139646071 112 Bridge Street Eltham 1 3095 Let Jagger Hair and Beauty set you up with the hot... 1372 1 250|30 2012-01-22 19:11:05
What I want is to make the offers become an array or something so there is only one row.
NEW CODE
Found an error in the JOIN SQL CODE
SELECT * FROM approved_business, business_stores, Real_Cash_Offers
WHERE approved_business.id = business_stores.business_id
AND Real_Cash_Offers.business_id = approved_business.id
AND Real_Cash_Offers.storeid = business_stores.storeid
ORDER BY `approved_business`.`id` DESC
OUTPUT
id tradingname listed business_id storeid phone street suburb state postcode discription business_id storeid offer tstamp
2582 Deeply Skin Medi Spa 2012-01-22 19:11:05 2582 1 0388224001 Suite 3 , 616 Park Rd Park Orchard 1 3114 2582 1 370|5 2012-01-22 19:11:05
2582 Deeply Skin Medi Spa 2012-01-22 19:11:05 2582 1 0388224001 Suite 3 , 616 Park Rd Park Orchard 1 3114 2582 1 570|10 2012-01-22 19:11:05
2582 Deeply Skin Medi Spa 2012-01-22 19:11:05 2582 1 0388224001 Suite 3 , 616 Park Rd Park Orchard 1 3114 2582 1 1570|15 2012-01-22 19:11:05