bartek22 Posted May 11, 2017 Share Posted May 11, 2017 Witam, chciałbym usunąć niektóre produkty z bazy za pomocą swojego skryptu wg. jakiegoś zdefiniowanego algorytmu. Czy wystarczy usunąć produkty jedynie z tabeli, w której się znajdują czy trzeba wykonać jeszcze jakieś relacji do innych tabel i również te powiązania pousuwać? Dzięki za pomoc. Barti Link to comment Share on other sites More sharing options...
Daresh Posted May 11, 2017 Share Posted May 11, 2017 Najlepiej nie grzebać w ogóle w bazie tylko w skrypcie PHP zrobić: $id = 10; $p = new Product($id); $p->delete(); 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now