Databases: insert query

Databases: insert query

by Shail Jai -
အကြောင်းပြန်မှု အရေအတွက်: 1
Hello Team,

where is the insert query for insert into mdl_user

ပျှမ်းမျှအဆင့်သတ်မှတ်ချက်များ: -
Shail Jai ထံသို့ အကြောင်းပြန်ရာတွင်

Re: Databases: insert query

by Tim Hunt -
Core developers ၏ ရုပ်ပုံ Documentation writers ၏ ရုပ်ပုံ Particularly helpful Moodlers ၏ ရုပ်ပုံ Peer reviewers ၏ ရုပ်ပုံ Plugin developers ၏ ရုပ်ပုံ
In Moodle, database access goes through the lib/dmllib.php library, so in this case you need to look for calls to the insert_record function, with 'user' as the first parameter.

The other way to find the answer to your question is to start from the other end. When you create a user using the Moodle UI, the URL is user/editadvanced.php, so have a look at that script, and the library functions it calls.