|
Php help needed
I want to know if when I do a Update if it succeded or not.
Like update blah set hits = hits + 1 where day = '$day'
How do I know if that executed? Because if it didnt then I know its a new day and can do a insert.
Or is there a better way in that you insert first then if it is successful you don't update?
Any help is appreciated.
|