Se você posta-se o arquivo que esta com problema eu agradeceria.
na linha 133~ conferi se está desse jeito.
public function find($name)
{
$id = $this->db->query('SELECT ' . $this->db->fieldName('id') . ' FROM ' . $this->db->tableName('players') . ' WHERE ' . $this->db->fieldName('name') . ' = ' . $this->db->quote($name) )->fetch();
if( isset($id['id']) )
{
$this->load($id['id']);
}
else
{
$id = $this->db->query('SELECT ' . $this->db->fieldName('id') . ' FROM ' . $this->db->tableName('players') . ' WHERE ' . $this->db->fieldName('old_name') . ' = ' . $this->db->quote($name) . ' AND ' . $this->db->fieldName('nick_verify') .' = 1')->fetch();
if( isset($id['id']) )
{
$this->load($id['id']);
}
}
}




info
Grupo: Campones
Registrado: 20/07/11
Posts: 7
Reputação: 0
Pode fexa, obrigado Sky!
Quem quiser saber .-. o erro era esse:
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 1194 Table 'players' is marked as crashed and should be repaired' in C:\xampp\htdocs\pot\OTS_Player.php:145 Stack trace: #0 C:\xampp\htdocs\pot\OTS_Player.php(145): PDO->query('SELECT `id` FRO...') #1 C:\xampp\htdocs\accountmanagement.php(863): OTS_Player->find('Dorgadinho') #2 C:\xampp\htdocs\index.php(135): include('C:\xampp\htdocs...') #3 {main} thrown in C:\xampp\htdocs\pot\OTS_Player.php on line 145
Editado Outubro 22 por Pavunis