Thread: Php help needed
View Single Post
Old 10-26-2003, 03:07 AM  
4Pics
Confirmed User
 
Industry Role:
Join Date: Dec 2001
Posts: 7,952
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.
4Pics is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote