Posted 26 марта, 20186 yr comment_145253 Здравствуйте, подскажите SQL запрос на удаление всех тем по определенную дату в выбранном разделе форума. И как удалить массово все сообщения пользователей Link to comment https://ipbmafia.ru/topic/19575-kak-sdelat-massovoe-udalenie-do-opredelennoj-daty/ Share on other sites Больше вариантов
26 марта, 20186 yr comment_145256 /* Как-то так */ #уадаление тем $time = time(); \IPS\Db::i()->delete( 'forums_forums', [ 'last_post<?' , $time ] ); #уадаление постов $timReal = time(); \IPS\Db::i()->delete( 'forums_topics', [ 'last_real_post<?' , $timReal ] ); Link to comment https://ipbmafia.ru/topic/19575-kak-sdelat-massovoe-udalenie-do-opredelennoj-daty/?&do=findComment&comment=145256 Share on other sites Больше вариантов
26 марта, 20186 yr Author comment_145258 Спасибо Link to comment https://ipbmafia.ru/topic/19575-kak-sdelat-massovoe-udalenie-do-opredelennoj-daty/?&do=findComment&comment=145258 Share on other sites Больше вариантов
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.