View Full Version : Need PHP help.
Lysine
16-10-2006, 09:47 PM
I got a titorial of this forum for a rare value system but it is not working.
I get this error
Error during the execution of the MySQL query : Table 'hablaugh_rares.categories' doesn't exist
In the 'create_rv.php' file.
Does anyone know what the problem is?
+ rep
- Lysine
Heinous
17-10-2006, 01:45 AM
A mysql database table is missing.
edit;
FTAO: Nublet who can't leave his or her name: I care about rep, why? Leave your name so I can return the favor, moron.
Lysine
17-10-2006, 10:07 AM
A mysql database table is missing.
edit;
FTAO: Nublet who can't leave his or her name: I care about rep, why? Leave your name so I can return the favor, moron.
Ok, What do i have too call it and what else do i need too add?
+ Rep.
Heinous
17-10-2006, 11:42 AM
It should be in the install script, but I'm not sure what columns it would need, as I don't know what ones it uses.
Lysine
17-10-2006, 01:23 PM
It did not have a install script.
There was just a file with the SQL and i added it all.
Heinous
18-10-2006, 06:05 AM
Then it could be a problem when the table was created.
Show me the SQL query you were to run, please.
Lysine
18-10-2006, 03:38 PM
CREATE TABLE `rares` (
`id` smallint(6) NOT NULL auto_increment,
`title` varchar(30) NOT NULL default '',
`category` tinyint(6) NOT NULL default '0',
`image` varchar(100) NOT NULL default '',
`date` varchar(20) NOT NULL default '',
`name` varchar(255) default '',
UNIQUE KEY `id` (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=36 DEFAULT CHARSET=latin1 AUTO_INCREMENT=36 ;
CREATE TABLE `cats` (
`id` tinyint(4) NOT NULL auto_increment,
`name` varchar(30) NOT NULL default '',
UNIQUE KEY `id` (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=18 DEFAULT CHARSET=latin1 AUTO_INCREMENT=18 ;
That is the SQL :)
CREATE TABLE `rares` (
`id` smallint(6) NOT NULL auto_increment,
`title` varchar(30) NOT NULL default '',
`category` tinyint(6) NOT NULL default '0',
`image` varchar(100) NOT NULL default '',
`date` varchar(20) NOT NULL default '',
`name` varchar(255) default '',
UNIQUE KEY `id` (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=36 DEFAULT CHARSET=latin1 AUTO_INCREMENT=36 ;
CREATE TABLE `cats` (
`id` tinyint(4) NOT NULL auto_increment,
`name` varchar(30) NOT NULL default '',
UNIQUE KEY `id` (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=18 DEFAULT CHARSET=latin1 AUTO_INCREMENT=18 ;That is the SQL :)
It's looking for a table called "categorys" which does not exist. I am guessing it is really looking for the table called cats.
Heinous
19-10-2006, 04:19 AM
It's looking for a table called "categorys" which does not exist. I am guessing it is really looking for the table called cats.
By looking at it I'd agree.
Lysine
19-10-2006, 07:39 PM
How would i be able too add the table which needs too be added?
Heinous
20-10-2006, 12:03 AM
You could either just do this (assuming all calls to the category table are wrong, and look for cats):
CREATE TABLE `categories` (
`id` tinyint(4) NOT NULL auto_increment,
`name` varchar(30) NOT NULL default '',
UNIQUE KEY `id` (`id`)
) ENGINE=MyISAM AUTO_INCREMENT=18 DEFAULT CHARSET=latin1 AUTO_INCREMENT=18 ;
Or, change all the files to look for cats rather than categories.
Lysine
20-10-2006, 02:00 PM
Thank you :) + rep
I now have another problem with it read this thread :- http://www.habboxforum.com/showthread.php?t=246161
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.