2
I have 2 tables:
products
id
name
...
products_photos
id
id_product
photo
In PHP I will make a DELETE in the Product, and therefore I want to automatically delete ALL photos of the deleted product, of course also delete the record in the table.
In this case, I must first mess with Cascade (SQL), then in PHP to delete the files, right ?