There is a mySQL table which stores links to videos added to the post.
id | post_id | host | link 1 | 15 | youtube | youtube.com 2 | 15 | vimeo | vimeo.com 3 | 20 | youtube | youtube.com 4 | 20 | youtube | youtube.com 6 | 34 | vimeo | vimeo.com 6 | 35 | vimeo | vimeo.com 6 | 36 | youtube | youtube.com Tell me how to make a request to choose from the ID database of posts that do not have a link to youtube? In this example, post_id 34 and 35 should be selected.
Now I select all the records and do not filter them out for PHP, but this is in my opinion not very true, because I think that you can immediately choose the right ones.
WHERE link NOT LIKE '%youtube.com%'- Edward