I want to delete some informations of my database in 2 tables.
First question, is it possible ? If yes:
I had tried a UNION DELETE
query, but it doesn't work.
$delete = mysqli_query($sql, "(DELETE FROM table1 WHERE id LIKE '".$id."' && userid LIKE '".$userid."') UNION (DELETE FROM table2 WHERE source_id LIKE '".$id."' && userid LIKE '".$userid."')");