SELECT * FROM detailorder inner join orderlist on detailorder.IdOrder= orderlist.IdOrder INNER JOIN ON productsotop ON orderlist.ProductsId=productsotop.ProductsId where productsotop.IdMember = $IdMember ";
แล้ว sql
SELECT * FROM detailorder ,orderlist , productsotop
where detailorder.IdOrder=orderlist.IdOrder and orderlist.ProductsId=productsotop.ProductsId
and detailorder.IdMember = '$IdMember'