i wanna do check for few things.... but i'm not able to...(check below).
Okey so this works how it is but i wanna add more one check.
mysql_query('UPDATE characters SET voted=1 where account_name like \''.$row['login'].'\' and online=1;') ;
Anyway what i wanna add is after online=1 to check
where
MIN(lastAccess)
I tried few things but i failed... like:
mysql_query('UPDATE characters SET voted=1 where account_name like \''.$row['login'].'\' and online=1 having min(lastaccess);') ;