Marty Rogers
Account Closed
- Impact
- 3
Can you help me?
I have this code:
Anybody know how i could select from links WHERE the number in my field 'count' is no more than 20 less than the number in my field 'out'. Basically i don't want to show their links when i've sent them alot more traffic than they've sent me, so i want to stop showing their link when i've sent them 20 hits more than they've sent in to me.
Right now it shows all links that have sent in 5 hits today. I still want it to show them when they've sent 5 hits in, but once i've sent them 20 hits more than they've sent in i want it to stop showing them.
I have this code:
Code:
$sql = 'SELECT ref, name, pic, id, count, real_count, out, real_out FROM links WHERE count > 5
ORDER BY count DESC LIMIT '.$config['display_num'];
Right now it shows all links that have sent in 5 hits today. I still want it to show them when they've sent 5 hits in, but once i've sent them 20 hits more than they've sent in i want it to stop showing them.














