WmZilla - Webmaster and Marketplace

The Next Generation Webmaster and Trade Forum

The formula designed to prevent the balance in the account from going negative is giving an error.

toxicmix

New member

0

0%

Status

Offline

Posts

46

Likes

0

Rep

0

Bits

240

3

Months of Service

0%
I wrote this formula in order to prevent the 'para_miktari' column in the database from going negative when a withdrawal is made, but I received a syntax error. What is the error here?

Update account_details set para_miktari = para_miktari - 100if para_miktari < 0 then para_miktari = 0
 

249

6,622

6,642

Top