Houdini wrote:Just an idea
$test ="SELECT numturns FROM km_users WHERE somecondition ";
if($test + 15 =< 2000){
$addturns = "UPDATE km_users SET numturns + 15 WHERE somecondition":
}
else {
// Do something different
}
That's a start, but 1990 + 15 is >2000, so the person wouldn't get anything, while he should get 10. But thanks 🙂
@: How would this look in the script?
Someone came with this idea:
update km_users
set numturns
= numturns +
case when numturns between 1985 and 2000
then 2000 - numturns
else 15 end
But I don't know exactly how to code that