Answer the question
In order to leave comments, you need to log in
How to get values from DB using RedbeanPHP?
Tell me, I wrote the value to the database through a command in redbeanphp
$user->uniq_id = md5($_SERVER['REMOTE_ADDR'].$_SERVER['HTTP_USER_AGENT'].mktime());
$uniq_id = R::findOne ('users','uniq_id = ?',array($data['login']));
Answer the question
In order to leave comments, you need to log in
To be honest, I didn't quite understand the question. More precisely, I did not understand the first line of the above code.
And it’s easy to extract the data, if the login is known, then you need to get it by the login field, or whatever name this field is called in your table, for example:
$uniq_id = R::findOne ('users','login = ?',array($data['login']));
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question