Hi,
so im taking a value of current val and subtracting a cost value like this
PHP Code:
$updatecred = $mem_curcred - $featurecost;
I do check the avail credits before hand but i was thinking what if the user waits awhile and just lets the page sit there then finishes, it could by pass my number of cred avail check.
So what i want to do is just verify before i post in the db that this result of $updatecred is NOT a neg number.
I know this sounds soo noobish but i really dont know. Do i just check for < 0 or if i use intval will that make sure it is not < 0
Which is best, if it is < 0 i just want it to be 0.
thanks