Answer the question
In order to leave comments, you need to log in
Instead of changing the field, a new entry is added?
You have the following code:
$findone = R::findOne('users', 'username = ?', array($_SESSION['log_data']));
$loadya = R::load('users', $findone->id);
$load_time = $findone->time+50;
$loadya->time = $load_time;
R::store($loadya);
This code should take the existing 'balance' and add 50 to it, but instead it adds a new entry with all null fields except time. Can anyone suggest what is wrong?
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