Add set_comment function

This commit is contained in:
Rodolphe Quiedeville 2002-12-26 10:21:15 +00:00
parent 076891fb92
commit 7fe028133c

View File

@ -314,6 +314,33 @@ class Don
return 0;
}
}
/*
* Classé comme payé, le don a été recu
*
*/
Function set_commentaire($rowid, $commentaire='')
{
$sql = "UPDATE llx_don SET note = '$commentaire'";
$sql .= " WHERE rowid = $rowid ;";
if ( $this->db->query( $sql) )
{
if ( $this->db->affected_rows() )
{
return 1;
}
else
{
return 0;
}
}
else
{
print "Err : ".$this->db->error();
return 0;
}
}
/*
* Classé comme encaissé
*