Answer the question
In order to leave comments, you need to log in
How to add specific value from Mysql (Redbeanphp) table to URL?
The crux of the matter is as follows.
There is a table with columns id, token, login, join_date, expire_date
Authorization takes place with the login value and from this value it is necessary to pull up the token value in the URL
That is, to get site.ru/login.php?token=hash I
broke my whole head how to pull up this value, and if it pulls up, then the whole array, but I don’t need it or pulls up the zero value
UPD:
if($sevendays == false ) {
$data = $_POST;
$activesevendouble = R::findone('activen', 'login = ? ', array($data['login']));
echo $activesevendouble;
echo '<div style="color: green;">Ну все SEVENDAYs </div>';
$urrll = "http://example.com/activate.php?token=$activesevendouble";
echo $urrll;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question