Tables:
Code:CREATE TABLE IF NOT EXISTS `wars_list` ( `id` int(11) NOT NULL auto_increment, `team_1` varchar(255) NOT NULL, `team_2` varchar(255) NOT NULL, PRIMARY KEY (`id`) ); CREATE TABLE IF NOT EXISTS `war_deaths` ( `war_id` int(11) NOT NULL, `team` int(11) NOT NULL, `from_guild` int(11) NOT NULL default '0', `to_guild` int(11) NOT NULL default '0', `player_id` int(11) NOT NULL default '0', `killed_by` int(11) NOT NULL default '0' );
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S02]: Base table or view not found: 1146 Table 'tfs.wars' doesn't exist' in D:\xampp\htdocs\accmaker\guildwar.php:6 Stack trace: #0 D:\xampp\htdocs\accmaker\guildwar.php(6): PDO->query('SELECT * FROM w...') #1 D:\xampp\htdocs\accmaker\index.php(148): include('D:\xampp\htdocs...') #2 {main} thrown in D:\xampp\htdocs\accmaker\guildwar.php on line 6
What thing i did wrong ;/? help plx
CREATE TABLE IF NOT EXISTS `wars_list` (
`id` int(11) NOT NULL auto_increment,
`team_1` varchar(255) NOT NULL,
`team_2` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
);
CREATE TABLE IF NOT EXISTS `war_deaths` (
`war_id` int(11) NOT NULL,
`team` int(11) NOT NULL,
`from_guild` int(11) NOT NULL default '0',
`to_guild` int(11) NOT NULL default '0',
`player_id` int(11) NOT NULL default '0',
`killed_by` int(11) NOT NULL default '0'
);
Fatal error: Call to a member function query() on a non-object in C:\xampp\htdocs\war.php on line 6
$wars = $SQL->query("SELECT * FROM wars WHERE status = 1 ORDER BY date DESC;");
[09/04/2009 15:27:45] Lua Script Error: [GlobalEvent Interface]
[09/04/2009 15:27:45] data/globalevents/scripts/wars.lua
[09/04/2009 15:27:45] cannot open ./GuildWar.lua: No such file or directory
[09/04/2009 15:27:45] [Warning - Event::loadScript] Can not load script (data/globalevents/scripts/wars.lua)
how to fix this?
CREATE TABLE IF NOT EXISTS `wars_list` (
`id` int( 11 ) NOT NULL AUTO_INCREMENT ,
`team_1` varchar( 255 ) NOT NULL ,
`team_2` varchar( 255 ) NOT NULL ,
PRIMARY KEY ( `id` )
);# MySQL zwrócił pusty wynik (zero rekordów).
CREATE TABLE IF NOT EXISTS `war_deaths` (
`war_id` int( 11 ) NOT NULL ,
`team` int( 11 ) NOT NULL ,
`from_guild` int( 11 ) NOT NULL default '0',
`to_guild` int( 11 ) NOT NULL default '0',
`player_id` int( 11 ) NOT NULL default '0',
`killed_by` int( 11 ) NOT NULL default '0'
);# MySQL zwrócił pusty wynik (zero rekordów).
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S02]: Base table or view not found: 1146 Table 'tfs.wars' doesn't exist' in D:\xampp\htdocs\accmaker\guildwar.php:6 Stack trace: #0 D:\xampp\htdocs\accmaker\guildwar.php(6): PDO->query('SELECT * FROM w...') #1 D:\xampp\htdocs\accmaker\index.php(148): include('D:\xampp\htdocs...') #2 {main} thrown in D:\xampp\htdocs\accmaker\guildwar.php on line 6
And all is the same as earlier...
The same error
When will you make your own solution? i will still waiting for this
CREATE TABLE IF NOT EXISTS `wars` (
`id` int(11) NOT NULL auto_increment,
`team_1` varchar(255) NOT NULL,
`team_2` varchar(255) NOT NULL,
PRIMARY KEY (`id`)
);
CREATE TABLE IF NOT EXISTS `war_deaths` (
`war_id` int(11) NOT NULL,
`team` int(11) NOT NULL,
`from_guild` int(11) NOT NULL default '0',
`to_guild` int(11) NOT NULL default '0',
`player_id` int(11) NOT NULL default '0',
`killed_by` int(11) NOT NULL default '0'
);
waiting for your updates , btw by doing this in begining
in that php file released
go to first line <?PHP change to <?PHP?>
then you will start getting tables and such but ALOT OF ERRORS
i cant come further then that dunno if that helped
I like that you share your solutions as well.
Your one of them who understands that we have to work together to make it work.
People who fixed this, and refuse to tell it,
will have problems later when others find the solution to
something and doesn't share it.
Sharing Is Caring
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause'' in D:\xampp\htdocs\accmaker\guildwar.php:6 Stack trace: #0 D:\xampp\htdocs\accmaker\guildwar.php(6): PDO->query('SELECT * FROM w...') #1 D:\xampp\htdocs\accmaker\index.php(148): include('D:\xampp\htdocs...') #2 {main} thrown in D:\xampp\htdocs\accmaker\guildwar.php on line 6
Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[42S22]: Column not found: 1054 Unknown column 'status' in 'where clause'' in D:\xampp\htdocs\accmaker\guildwar.php:6 Stack trace: #0 D:\xampp\htdocs\accmaker\guildwar.php(6): PDO->query('SELECT * FROM w...') #1 D:\xampp\htdocs\accmaker\index.php(148): include('D:\xampp\htdocs...') #2 {main} thrown in D:\xampp\htdocs\accmaker\guildwar.php on line 6