Jeinersito
New Member
- Joined
- Aug 20, 2007
- Messages
- 37
- Reaction score
- 0
PHP:
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column 'rep' in 'field list'' in C:\xampp\htdocs\pot\OTS_Player.php:1811 Stack trace: #0 C:\xampp\htdocs\pot\OTS_Player.php(1811): PDO->query('SELECT `rep` FR...') #1 C:\xampp\htdocs\characters.php(93): OTS_Player->getCustomField('rep') #2 C:\xampp\htdocs\index.php(148): include('C:\xampp\htdocs...') #3 {main} thrown in C:\xampp\htdocs\pot\OTS_Player.php on line 1811
When i try find character on web side do this mistake how can fix this?
The line 1811 on my OTS_Player.php
PHP:
$value = $this->db->query('SELECT ' . $this->db->fieldName($field) . ' FROM ' . $this->db->tableName('players') . ' WHERE ' . $this->db->fieldName('id') . ' = ' . $this->data['id'])->fetch();