예제 #1
0
 public static function GetByName($name)
 {
     global $MySQL;
     $query = "SELECT * FROM phpmmo_journal_entries WHERE entry_name = '" . $MySQL->real_escape_string($name) . "'";
     $result = $MySQL->query($query);
     $values = $result->fetch_assoc();
     return JournalEntry::GetByAssoc($values);
 }