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

« Java :: Invoke static... || Java :: Точно не... »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home