Bob_R Active member Mar 18, 2016 #1 I know how to change the IP of a member. I know how to delete all members IP's. I know how to delete a single IP of a member. My question is can multiple members IP's be deleted? Not all members but more than one member at a time?
I know how to change the IP of a member. I know how to delete all members IP's. I know how to delete a single IP of a member. My question is can multiple members IP's be deleted? Not all members but more than one member at a time?
P Paul B XenForo moderator Staff member Mar 18, 2016 #2 There is no option to selectively delete IP records. Upvote 0 Downvote
Bob_R Active member Mar 18, 2016 #3 So, I can only do one at a time? Code: DELETE FROM xf_ip WHERE user_id = 1 Upvote 0 Downvote
P Paul B XenForo moderator Staff member Mar 18, 2016 #4 You could use an array or write a small script to loop through. Upvote 0 Downvote
Bob_R Active member Mar 18, 2016 #5 OK, thanks there are only 18. I'll just do it one at a time. I thought you could seperate the user id's by comma. Code: DELETE FROM xf_ip WHERE user_id = 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18 Upvote 0 Downvote
OK, thanks there are only 18. I'll just do it one at a time. I thought you could seperate the user id's by comma. Code: DELETE FROM xf_ip WHERE user_id = 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18
wang Well-known member Mar 18, 2016 #6 Use IN instead of = in the query to select multiple users. Upvote 0 Downvote
SevgiForum Active member Apr 5, 2017 #7 HOW TO DO ! Sample multiple DELETE FROM m WHERE user_id IN (3,1.5.7) complete Last edited: Apr 5, 2017 Upvote 0 Downvote