Allowing Members to give rep points once in a day
<p>I am new to PHP and don't have much knowledge so that's why I'm asking here.
My problem is that the following code allows my site members to give points to other members, but it only allows it one time, so I want it to give points once per day. What things do I need to make it possible?<br>
Here is the code:</p>

<pre><code>// users can not give 2 x points
$repeat = mysql_query("SELECT userid FROM {$TABLE_PREFIX}reputation WHERE userid ='$id' AND whoadded=".$CURUSER["uid"]);
if( mysql_num_rows( $repeat) &gt; 0 )
{
    stderr("Hold On","You already gave reputation points to this user!");
    stdfoot();
    exit;
}
</code></pre>

<p>Any help will be highly appreciated.</p>
