You are here

function contribute_add_contribution_to_db in Contribute 6

1 call to contribute_add_contribution_to_db()
contribute_contribution in ./contribute.module

File

./contribute.module, line 393
Lets users contribute to projects

Code

function contribute_add_contribution_to_db($uid, $nid, $amount) {
  $result = db_query('INSERT INTO {contribute_contributions} VALUES(%d,%d,%f,%d,%d)', $uid, $nid, $amount, time());
}