Jump to content

Запрос к базе данных


Trotor
 Share

Recommended Posts

Очень нужно составить конструкцию для файла задач, где по запуску задачи удаляеться часть информации с определённого поля, эта часть информции указываеться в другом поле.

Вот что то типа такого:
$this->DB->delete( 'members', 'mgroup_others="promote_moder"' );

Внёс вот такую конструкцию в файл задач, которая напрямую обращаеться к базе данных, однако такая конструкция как я смотрю довольно тяжёлая для форума:
$this->DB->query( "UPDATE ibf_members SET mgroup_others = REPLACE(mgroup_others,'87,','') WHERE promote_moder=1" );

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...