Logged in user, I create an article, this article is thrown in a separate column as shown in the figure. It is necessary that all actions of the logged in user are recorded in his column. Here is how the registration is recorded:

$user = R::dispense('users'); $user->login = $data['login']; $user->email = $data['email']; $user->password = password_hash($data['password'],PASSWORD_DEFAULT); R::store($user); 

Here's a blog entry:

$user = R::dispense('users'); $user->nazvanie = $data['head']; $user->text = $data['telo']; $id = R::store($user);

I use the redBean database!

https://i.stack.imgur.com/mVMAU.png

  • nothing is clear. - n.osennij pm

0