Answer the question
In order to leave comments, you need to log in
How to validate a value from a database?
There is a database on sqlite
It stores the following data: id, money
I want to make a 'Guess the number' game, almost everything is ready, what remains is to make a money check so that the user cannot enter a bet more than his balance in the database
I can't figure out how do this check
Answer the question
In order to leave comments, you need to log in
It stores the following data: id, moneyIf this is "balance", then compare with it. But if the user has several such records, then you need to add his code to this table and compare with the sum of all these records.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question