$query = mysql_query("SELECT * FROM `links_hint` WHERE linkid ='$linkid' AND dato < DATE_SUB(CURDATE(),INTERVAL 7 DAY"); while($row2 = mysql_fetch_array($query)) { $uge = $uge + $row2['hint']; }
Hvad er der galt med denne lille kodestump:Kode $query = mysql_query("SELECT * FROM `links_hint` WHERE linkid ='$linkid' AND dato < DATE_SUB(CURDATE(),INTERVAL 7 DAY"); while($row2 = mysql_fetch_array($query)) { $uge = $uge + $row2['hint']; }