php
Date: 09/20/05
(Code WTF) Keywords: no keywords
$TotalPoints =0; $DBA->query("SELECT Points from SomeTable where ID='$SomeValue");
while($DBA->next_record()) { $TotalPoints += $DBA->f(Points); } echo $TotalPoints ;
Source: http://www.livejournal.com/community/code_wtf/14738.html
|