Image

Imagesoltice wrote in Imagephp

Me again

I have a new question. The reason for my last post about ++ and -- a MySQL column had the following reason: I have a table that stores a word and a numeric weight.

The table starts empty and is filled by gleaning words from text users enter. Because of this, new words have to be inserted, and old words have to be incremented or decremented. Is it possible to do this with one query using the IF command? One result would have to be an Insert and the other an Update.