PHP & MySQL delete all comments related to an article question

H.S.

New Member
Lets say I have 20 comments that are related to article_id \[code\]76\[/code\] will I have to count all the article ids that have an article_id \[code\]76\[/code\] and then run a foreach loop for all the comments related to article 76 or can I delete all the comments related to that article using a query? \[code\]SELECT article_id FROM articles_comments WHERE article_id = 76\[/code\]
 
Back
Top