Thread Starter
carl2e
(@carl2e)
I realized that php was treating the variables as string variables, not numeric variables. For now, I including the following line to make sure that the variable ‘spot’ is an integer:
spot = parseInt(spot) ;
The function is now working.