Php help needed

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • 4Pics
    Confirmed User
    • Dec 2001
    • 7952

    #1

    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.
  • Chaldoray
    Confirmed User
    • Jul 2003
    • 2868

    #2
    icq 237842929, maybe i can help

    Comment

    • swedguy
      Confirmed User
      • Jan 2002
      • 7981

      #3
      mysql_affected_rows()

      Comment

      • 4Pics
        Confirmed User
        • Dec 2001
        • 7952

        #4
        Originally posted by swedguy
        mysql_affected_rows()
        Thanks

        Comment

        Working...