SELECT user_id FROM post WHERE user_id=:user_id && post_id=:post_id
if ($row==1){
DELETE FROM post WHERE user_id=:user_id && post_id=:post_id LIMIT 1
}
I have a mysql DELETE question.
Do I need to query to find out the if the row is exit and run the DELETE query after, or I can just run DELETE query?