diff --git a/word_lists.php b/word_lists.php new file mode 100644 index 0000000..f6b7e5e --- /dev/null +++ b/word_lists.php @@ -0,0 +1,5 @@ + count(CHOICES)) { + $word['id'] = -(array_search(strtoupper($word['solution']), GUESSES) + 1); + } // Add word to database $query = 'INSERT INTO words (id, solution, print_date, days_since_launch, editor) ' .