From 1d3ee3f83ecf3097d885338ce6e3286a5f91f217 Mon Sep 17 00:00:00 2001 From: dave Date: Fri, 22 Feb 2008 06:19:22 +0000 Subject: [PATCH] - Judge autocomplete function, there's no menu link to it. This should work for timmins and fraser valley --- admin/fix_judges_autocomplete.php | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 admin/fix_judges_autocomplete.php diff --git a/admin/fix_judges_autocomplete.php b/admin/fix_judges_autocomplete.php new file mode 100644 index 00000000..dec1036e --- /dev/null +++ b/admin/fix_judges_autocomplete.php @@ -0,0 +1,22 @@ +email}
"; + $id = $i->id; + + $p = generatePassword(12); + mysql_query("UPDATE judges SET password='$p',complete='yes'"); + echo mysql_error(); + mysql_query("DELETE FROM judges_years WHERE judges_id='$id'"); + echo mysql_error(); + mysql_query("INSERT INTO judges_years (`judges_id`,`year`) VALUES ('$id','{$config['FAIRYEAR']}')"); + echo mysql_error(); +} + +?>