View Single Post
  #7  
Old 02-05-2010, 09:44 PM
Quillink Quillink is offline
Member
 
Join Date: Dec 2008
Posts: 93
Credits: 16,219
Quillink
Default RE: Limit clicks/day to 10, for each pet?

:o

Lol. Trust me to pick the abstract, complex way right off the bat. I'll definitely do that Brandon, thanks for suggesting it. :D

EDIT: It's really hard to see if it's working, but does this look functionable to you guys?
Code:
$query = "SELECT * FROM ".$prefix."vote_voters WHERE adoptableid='$id' and date = '$date'";
$result = mysql_query($query);
$ctd = mysql_numrows($result);

if ($ctd <= 9) { $addclicks = 1; }
else 		  { $addclicks = 0; }

$newclicks = $totalclicks + $addclicks;
Reply With Quote