static function change_read($note, $side = "_gestion") { global $dbh; $read = demandes_notes::read($note, $side); $value = ""; if ($read) { $value = 1; } else { $value = 0; } $query = "UPDATE demandes_notes SET notes_read" . $side . "=" . $value . " WHERE id_note=" . $note->id_note; if (pmb_mysql_query($query, $dbh)) { return true; } else { return false; } }