Ejemplo n.º 1
0
 public static function newWord()
 {
     $newWordID = self::getRandomID();
     $sql = "SELECT * FROM word WHERE ID={$newWordID}";
     $result = dbConnect::runSQL($sql);
     $word = $result->fetch_assoc();
     $wordLetters = str_split($word['word']);
     $word['wordLetters'] = $wordLetters;
     return $word;
 }