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

Shop system error

Skychi

New Member
Joined
Jul 3, 2009
Messages
25
Reaction score
0
Location
anywhere and everywhere
when I try to access my shop I get this error:

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S02]: Base table or view not found: 1146 Table 'argania.z_shop_offer' doesn't exist' in D:\xampp\htdocs\shopsystem.php:55 Stack trace: #0 D:\xampp\htdocs\shopsystem.php(55): PDO->query('SELECT * FROM `...') #1 D:\xampp\htdocs\shopsystem.php(99): getOfferArray() #2 D:\xampp\htdocs\index.php(184): include('D:\xampp\htdocs...') #3 {main} thrown in D:\xampp\htdocs\shopsystem.php on line 55


I think that the shop system isn't in my SQL database for some odd reason. If so, can someone guide me through the process of installing that script?
 
when I try to access my shop I get this error:

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S02]: Base table or view not found: 1146 Table 'argania.z_shop_offer' doesn't exist' in D:\xampp\htdocs\shopsystem.php:55 Stack trace: #0 D:\xampp\htdocs\shopsystem.php(55): PDO->query('SELECT * FROM `...') #1 D:\xampp\htdocs\shopsystem.php(99): getOfferArray() #2 D:\xampp\htdocs\index.php(184): include('D:\xampp\htdocs...') #3 {main} thrown in D:\xampp\htdocs\shopsystem.php on line 55


I think that the shop system isn't in my SQL database for some odd reason. If so, can someone guide me through the process of installing that script?

Try
Code:
CREATE TABLE `z_shop_offer` (
  `id` int(11) NOT NULL auto_increment,
  `points` int(11) NOT NULL default '0',
  `itemid1` int(11) NOT NULL default '0',
  `count1` int(11) NOT NULL default '0',
  `itemid2` int(11) NOT NULL default '0',
  `count2` int(11) NOT NULL default '0',
  `offer_type` varchar(255) default NULL,
  `offer_description` text NOT NULL,
  `offer_name` varchar(255) NOT NULL,
  PRIMARY KEY  (`id`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;
 
Yet another error...

This time it's the Shop History...

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S02]: Base table or view not found: 1146 Table 'argania.z_shop_history_item' doesn't exist' in D:\xampp\htdocs\shopsystem.php:353 Stack trace: #0 D:\xampp\htdocs\shopsystem.php(353): PDO->query('SELECT * FROM `...') #1 D:\xampp\htdocs\index.php(184): include('D:\xampp\htdocs...') #2 {main} thrown in D:\xampp\htdocs\shopsystem.php on line 353

I bet I need another SQL script. sorry for making you work so hard ='(
 
CREATE TABLE `z_shop_history_item` (
`id` int(11) NOT NULL auto_increment,
`to_name` varchar(255) NOT NULL default '0',
`to_account` int(11) NOT NULL default '0',
`from_nick` varchar(255) NOT NULL,
`from_account` int(11) NOT NULL default '0',
`price` int(11) NOT NULL default '0',
`offer_id` int(11) NOT NULL default '0',
`trans_state` varchar(255) NOT NULL,
`trans_start` int(11) NOT NULL default '0',
`trans_real` int(11) NOT NULL default '0',
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
 
ok, now for the pacc...


Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S02]: Base table or view not found: 1146 Table 'argania.z_shop_history_pacc' doesn't exist' in D:\xampp\htdocs\shopsystem.php:374 Stack trace: #0 D:\xampp\htdocs\shopsystem.php(374): PDO->query('SELECT * FROM `...') #1 D:\xampp\htdocs\index.php(184): include('D:\xampp\htdocs...') #2 {main} thrown in D:\xampp\htdocs\shopsystem.php on line 374

this is starting to get old... Just being honest -_-;
 
Last edited:
ok, now for the pacc...


Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S02]: Base table or view not found: 1146 Table 'argania.z_shop_history_pacc' doesn't exist' in D:\xampp\htdocs\shopsystem.php:374 Stack trace: #0 D:\xampp\htdocs\shopsystem.php(374): PDO->query('SELECT * FROM `...') #1 D:\xampp\htdocs\index.php(184): include('D:\xampp\htdocs...') #2 {main} thrown in D:\xampp\htdocs\shopsystem.php on line 374

this is starting to get old... Just being honest -_-;

Use this one:

Code:
	CREATE TABLE `z_shop_history_pacc` (
 					      `id` int(11) NOT NULL auto_increment,
 					      `to_name` varchar(255) NOT NULL default '0',
 					      `to_account` int(11) NOT NULL default '0',
 					      `from_nick` varchar(255) NOT NULL,
 					      `from_account` int(11) NOT NULL default '0',
 					      `price` int(11) NOT NULL default '0',
 					      `pacc_days` int(11) NOT NULL default '0',
 					      `trans_state` varchar(255) NOT NULL,
 					      `trans_start` int(11) NOT NULL default '0',
 					      `trans_real` int(11) NOT NULL default '0',
 					      PRIMARY KEY  (`id`)
 					    ) ENGINE=MyISAM  DEFAULT CHARSET=latin1;");

Rep me++
 
Back
Top