Fatal error: Call to a member function query() on a non-object in /var/www/pot/OTS_Player.php on line 135
Przy tworzeniu nazwy acc:
Fatal error: Call to a member function query() on a non-object in /var/www/pot/OTS_Account.php on line 247
OTS_player.php line 137
// finds player's ID
Kod PHP:
$id = $this->db->query('SELECT ' . $this->db->fieldName('id') . ' FROM ' . $this->db->tableName('players') . ' WHERE ' . $this->db->fieldName('name') . ' = ' . $this->db->quote($name) )->fetch();
// finds player's ID
Kod PHP:
$id = $this->db->query('SELECT ' . $this->db->fieldName('id') . ' FROM ' . $this->db->tableName('accounts') . ' WHERE ' . $this->db->fieldName('name') . ' = ' . $this->db->quote($name)
Zakładki