$result = dbquery("SELECT SUM(amount) FROM parama"); $vardas = dbresult($result);