Automaticaly Update Sql Db!

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    #16
    lol pamod, the code you gave will update plusses yeah, but it will update anyones plusses if the clock hits (what ever time) you put... someone could have like 50000 plusses and they would get more if there online on the index.php at the time you put

    Comment


      #17
      to get points for 5 chat lines you must select and count the last 5 lines by user and by chatroom name.

      like
      SELECT COUNT(chatter) from ibwf_chat where chatter = 3 // each user have one id

      if this result is equal with 5{

      make the update
      }
      there is a problem. if the automatic refresh run two time, and user count is 5 , the update in database is double...[/b]
      yes that would be big problem, but is there any alternative solution?
      like i was thinking to do it from the chat points(posts) in profile. whenever 5 chat points increases in their
      profile, then add 1 plus to the user. exactly im not getting how to code it. can u help me please!

      Comment


        #18
        i dont understand, do you want to see where is the insert with point, what insert for each action or to make one update with condition in index, chat or else?


        if you want to update you must decide what and for that you need some conditions.explain.
        http://ngeo.ro

        Comment


          #19
          Has anyone tried setting corn jobs??If yes Post here plz

          Comment


            #20
            yes.
            first , see this movie http://www.2serveu.net/cpanel-tutori...ndardcron.html or see this tutorial http://www.webmasterstop.com/102.html
            second, you have cpanel?
            http://ngeo.ro

            Comment


              #21
              anything will do bro, all i want to do is update a user 1 plus for every 5chat posts. no problem if we put it in index.php or chat.php blackhowk

              Comment

              Working...
              X