Thread: Help please PHP coding [+REP]

Results 1 to 3 of 3
  1. #1 Help please PHP coding [+REP] 
    Registered Member
    Join Date
    Apr 2010
    Posts
    83
    Thanks given
    10
    Thanks received
    4
    Rep Power
    3
    Ok, so I have this vote4cash script and i need to clarify something:

    Code:
    function clean_request($time, $username)
    {
        $query = query("SELECT * FROM `votes` WHERE `playerName`='" . $username . "'");
        if (mysql_num_rows($query) > 0) {
            $row = mysql_fetch_array($query);
            $timerequested = $row['time'];
            if ($time - $timerequested > VOTE_HOURS * 3600)
                query("DELETE FROM `votes` WHERE time='" . $timerequested . "'");
        }
    }
    Wouldn't that multiply the vote hours by 3.6k? Since the vote hours are 24 it would be 86400? Does that mean it would take another 86400 hours to vote again? Thanks in advance
    Reply With Quote  
     

  2. #2  
    Registered Member
    Tyluur's Avatar
    Join Date
    Jun 2010
    Age
    26
    Posts
    5,103
    Thanks given
    1,818
    Thanks received
    1,767
    Rep Power
    2438
    > vote_hours * 3600)

    >
    Quote Originally Posted by blakeman8192 View Post
    Keep trying. Quitting is the only true failure.
    Spoiler for skrrrrr:

    Attached image
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Registered Member
    Join Date
    Apr 2010
    Posts
    83
    Thanks given
    10
    Thanks received
    4
    Rep Power
    3
    Can you please explain to me what you meant by that?
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Coding Help... !!
    By conex in forum Help
    Replies: 0
    Last Post: 12-27-2009, 08:05 AM
  2. Help with coding
    By Metal0Boy in forum Help
    Replies: 5
    Last Post: 12-10-2009, 03:54 PM
  3. 317 Coding help
    By danny94 in forum Help
    Replies: 1
    Last Post: 12-05-2009, 09:16 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •