Lines Matching refs:id
235 $res = db_query_safe("SELECT id, name FROM country ORDER BY name");
237 …echo "<option value=\"{$row['id']}\"", $cc == $row['id'] ? " selected" : "", ">{$row['name']}</opt…
282 function find_group_address_from_notes_for($id) {
283 $res = db_query_safe("SELECT note FROM users_note WHERE userid = ? LIMIT 1", [$id]);
307 function user_approve($id) {
308 $res = db_query_safe("UPDATE users SET cvsaccess=1, enable=1 WHERE userid=?", [$id]);
310 $cc = find_group_address_from_notes_for($id);
312 $userinfo = fetch_user($id);
322 $headers = "From: PHP Group <group@php.net>\nIn-Reply-To: <cvs-account-$id@php.net>";
324 warn("record $id ($userinfo[username]) approved");
328 warn("wasn't able to grant access to id $id.");
333 function user_remove($id) {
334 $userinfo = fetch_user($id);
335 $res = db_query_safe("DELETE FROM users WHERE userid=?", [$id]);
337 $cc = find_group_address_from_notes_for($id);
351 …mail($to, $subject, $message,"From: PHP Group <group@php.net>\nIn-Reply-To: <cvs-account-$id@php.n…
352 db_query_safe("DELETE FROM users_note WHERE userid=?", [$id]);
353 db_query_safe("DELETE FROM users_profile WHERE userid=?", [$id]);
354 warn("record $id ($userinfo[username]) removed");
358 warn("wasn't able to delete id $id.");
486 function fetch_event($id) {
487 $res = db_query_safe("SELECT * FROM phpcal WHERE id = ?", [$id]);