• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Problem Geisor Creat Char

cirbafe

New Member
Joined
Jan 14, 2009
Messages
2
Reaction score
0
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column 'old_name' in 'where clause'' 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(728): OTS_Player->find('Teste') #2 C:\xampp\htdocs\index.php(130): include('C:\xampp\htdocs...') #3 {main} thrown in C:\xampp\htdocs\pot\OTS_Player.php on line 145

When I click to create the account appears this error, I believe that there is the old table name, how do I add players to it?
 
do this query on mysql database

add this
ALTER TABLE `players` ADD `old_name` bigint(255) NOT NULL DEFAULT '0';

`old_name` shouldn't be bigInteger
It should be VARCHAR, just like `name`
PHP:
ALTER TABLE `players` ADD `old_name` VARCHAR(255) NOT NULL;
 
Back
Top