sql server - What's wrong with this PHP vote script? -


this vote script game: http://pastebin.com/p8df7svk

just lines check function is:

$num_rows = $adb->doquery('select ' . account . ' ' . account_table . ' datediff(dd, createdate, getdate()) <= 1 , ' . account . ' = ?', $_session[account]);       if ($num_rows != 0)       {         debug_log(__method__, 'account registered! account = %s, ip = %s', $_session[account], $this->site->getremoteip());         header('location: ' . $url);         return;       } 

but somehow everytime wants vote. says in logs: account registered! , doesn't add points voting .. so, wrong should check not able understand exactly. i've tried set account 1 month old, 1 year old , etc still same. vote, check shows in log it's new account (no matter if account 1 year old even) , doesn't add points.

check line 123-129, check function is. appreciated if let me know what's wrong check new accounts.

i've been using totally different tables , etc. it's fixed. thank lot guys time , great support on stackoverflow. it's been appreciated.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -