Loading ...
Sorry, an error occurred while loading the content.
 

Re: [bang-phpug] how to set a counter

Expand Messages
  • Harsha M V
    yes have a column in the db for count... after the call for the video file make sure u update the count with some thing like this UPDATE video SET hits=hits+1
    Message 1 of 4 , Feb 7, 2008
      yes have a column in the db for count...
      after the call for the video file make sure u update the count with some
      thing like this

      UPDATE video SET hits=hits+1 WHERE id='1'
      here id will be the videos id
      hits is the number of views..

      On Feb 8, 2008 10:57 AM, Ramkumar <mailtoramkumar@...> wrote:

      > Can you explain a bit more?
      >
      > You can keep a column in your table - view count. You can update it
      > every time the page in which the video is embedded is loaded.
      >
      > Ram
      >
      >
      > smangal09 wrote:
      >
      > > Hello every one,
      > > Can anybody provide me a script and guide me how to set a counter for
      > > a video to find the number of viewers.
      > >
      > > Thanks,
      > > Sandeep
      > >
      > >
      >
      >
      >



      --
      Harsha M V
      {http://hmv.co.in}


      [Non-text portions of this message have been removed]
    • Ramkumar
      Can you explain a bit more? You can keep a column in your table - view count. You can update it every time the page in which the video is embedded is loaded.
      Message 2 of 4 , Feb 7, 2008
        Can you explain a bit more?

        You can keep a column in your table - view count. You can update it
        every time the page in which the video is embedded is loaded.

        Ram

        smangal09 wrote:

        > Hello every one,
        > Can anybody provide me a script and guide me how to set a counter for
        > a video to find the number of viewers.
        >
        > Thanks,
        > Sandeep
        >
        >
      Your message has been successfully submitted and would be delivered to recipients shortly.