Browse Source

:bug: 字段名拼写错误

visuddhinanda 4 years ago
parent
commit
f8e3286b09
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/db/pali_sent.php

+ 1 - 1
app/db/pali_sent.php

@@ -36,7 +36,7 @@ class PaliSentence extends Table
 	}
 	public function getInfo($id)
 	{
-		$query = "SELECT book,paragraph, word_begin as bebin ,word_end as end from ".$this->table." where id = ? ";
+		$query = "SELECT book,paragraph, word_begin as begin ,word_end as end from ".$this->table." where id = ? ";
 		$stmt = $this->dbh->prepare($query);
 		$stmt->execute(array($id));
 		$result = $stmt->fetch(PDO::FETCH_ASSOC);