UPDATE links SET platinum = " . iif('platinum > 0 , platinum + $newlength', $length) . " WHERE linkid = '4'
I am trying to update a table by adding to an existing column if it is not null, or to add a different value if it is empty. Why wouldn't that staement work? It's always adding the new value, regardless that there is something in it already.
Thanks