I know that PHP can become quite complex when using INNER JOIN. I've had a play around with a few ideas and nothing seems to be working.
So this is what I'm working towards When user A Blocks user B user B gets removed from their friends.
So I have this and have an error
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'user1_id=15 AND user2_id=3 AND status=1 INNER JOIN friends ON block. DELETE fro' at line 1
Could anyone explain inner join in full and show me where I've gone wrong for future usage.
$query = mysqli_query($mysqli,"INSERT INTO block user1_id=$user1_id AND user2_id=$user2 AND status=1
INNER JOIN friends ON block.
DELETE from friends where user1_id=$user1_id AND user2_id=$user2 AND status=2 ")
or die (mysqli_error($mysqli));