• 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!

Windows Site fourm Error

melegy

Devils
Joined
Dec 5, 2012
Messages
178
Reaction score
2
Location
Egypt
Hello
i've a problem with my site fourm when any of player click 'thank you' in fourm

Code:
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S02]: Base table or view not found: 1146 Table 'egxot.thanks' doesn't exist' in C:\xampp\htdocs\forum.php:779 Stack trace: #0 C:\xampp\htdocs\forum.php(779): PDO->query('INSERT INTO `th...') #1 C:\xampp\htdocs\index.php(240): include('C:\xampp\htdocs...') #2 {main} thrown in C:\xampp\htdocs\forum.php on line 779

any help

regards
 
Base table or view not found: 1146 Table 'egxot.thanks' doesn't exist'

create the table egxot.thanks
 
I have no idea how the table structure looks like so I cant give you any input... perhaps give us more information
 
Code:
$SQL->query("INSERT INTO `thanks` (`id` ,`account_id` ,`forum_id` ,`player_name`)VALUES (NULL ,  '$account_id',  'index.php?subtopic=forum&action=show_thread&id=$vthread_id', '$player_name');");
 
Code:
$SQL->query("INSERT INTO `thanks` (`id` ,`account_id` ,`forum_id` ,`player_name`)VALUES (NULL ,  '$account_id',  'index.php?subtopic=forum&action=show_thread&id=$vthread_id', '$player_name');");

Code:
CREATE TABLE thanks (
id INT(11) UNSIGNED AUTO_INCREMENT PRIMARY KEY, account_id INT(11),
forum_id VARCHAR(255),
player_name VARCHAR(255)
);

Try that query, on mobile and not tested so please confirm
 
Back
Top