Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> MySQL
Author Message
Admin32
Regular
Regular



Joined: Sep 14, 2003
Posts: 74

PostPosted: Fri Oct 01, 2004 1:13 pm Reply with quote

Hi people,

I am trying to install a program that uses MySQL and have run into a small problem, which I am unable to resolve due to my lack of MySQL Programing knowledge!

More specifically, I've created a table using the following code:

CREATE TABLE categories (
id int(11) NOT NULL auto_increment,
name varchar(255) NOT NULL default '',
PRIMARY KEY (id)
) TYPE=MyISAM;



Then enter the following command:

INSERT INTO categories VALUES('1', '1','default');

When executing the above in MySQL Front, I receive the following error:

Column count doesn't match value count at row 1

Can someone help me resolve this ?

Cheers,

_________________
___________________
Chris Partsenidis
Founder & Senior Editor [ Only registered users can see links on this board! Get registered or login! ]
___________________ 
View user's profile Send private message Visit poster's website
Admin32







PostPosted: Fri Oct 01, 2004 2:24 pm Reply with quote

Just and update,

I have figured out the problem - simple one aswell!

Removing one '1' did the job, so:

INSERT INTO categories VALUES('1', '1','default');

became

INSERT INTO categories VALUES('1','default');

Cheers,
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> MySQL

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©