H
H
Helig2017-08-22 17:28:46
PHP
Helig, 2017-08-22 17:28:46

How to fetch data from a database using RedBeanPHP?

Give examples, please, of ways to display a value from the database.
Or explain to me why it doesn't work Ps There are no errors, it just doesn't display. <? echo $_SESSION['logged_user']->login; ?>

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander Pushkarev, 2017-08-22
@AXP-dev

Do you have an object in logged_user? Most probably$_SESSION['logged_user']['login']

D
darksladen, 2017-08-22
@darksladen

What does the session have to do with it? This is orm, which is designed for simplified work with the database..

O
ol sm, 2017-08-23
@ol_efk

<?php echo $_SESSION['logged_user']->login; ?>
check db.php .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question