#!/usr/bin/php getStatement('get reminder voters'); $voters->execute(); $outstanding = $db->getStatement('list my unvoted decisions'); $outstanding->bindParam(':id',$id); $outstanding->bindParam(':page',$page); while ($v = $voters->fetch()) { $id = $v['id']; $outstanding->execute(); $msg =''; while ($row=$outstanding->fetch()) { $msg .= ($row['votetype'] ? 'vote ' : 'motion ') . $row['tag'] . ' ' . $row['title'] . "\nDue: " . $row['due'] . "\nhttps://community.cacert.org/board/motions.php?motion=" . $row['tag'] . "\n\n"; } if ($msg) { // form email $name = $v['name']; $body = <<remind_notify($v['email'],"Outstanding CAcert board votes",$body); } } ?>