~ubuntu-branches/ubuntu/precise/boinc/precise

« back to all changes in this revision

Viewing changes to doc/help_db.php

Tags: 6.12.8+dfsg-1
* New upstream release.
* Simplified debian/rules

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
 
29
29
function ratings_get($volid) {
30
30
    $ratings = array();
 
31
    $volid = mysql_real_escape_string($volid);
31
32
    $query = "select * from rating where volunteerid=$volid order by timestamp desc";
32
33
    $result = mysql_query($query);
33
34
    while ($r = mysql_fetch_object($result)) {
39
40
 
40
41
function rating_vol_auth($volid, $auth) {
41
42
    $auth = mysql_real_escape_string($auth);
 
43
    $volid = mysql_real_escape_string($volid);
42
44
    $result = mysql_query("select * from rating where volunteerid=$volid and auth='$auth'");
43
45
    $rating = mysql_fetch_object($result);
44
46
    mysql_free_result($result);