Ik had eerst dit als tabel, dat werkte:
CREATE TABLE images (
id INT not null AUTO_INCREMENT,
name VARCHAR (64) not null,
type VARCHAR (64) not null,
length INT not null,
content BLOB not null,
PRIMARY KEY (id)
)
Maarnu wilde ik er meer gegevens bij toevoegen, dus bijvoorbeeld:
CREATE TABLE images (
id int(11) NOT NULL auto_increment,
name varchar(64) NOT NULL default '',
type varchar(64) NOT NULL default '',
achternaam varchar(40) NOT NULL default '',
length int(11) NOT NULL default '0',
content blob NOT NULL,
PRIMARY KEY (id)
) TYPE=MyISAM;
Maar als ik dan nog wat toevoeg, met een formpje krijg ik deze fout:
Column count doesn't match value count at row 1
Hoe kan dat?
CREATE TABLE images (
id INT not null AUTO_INCREMENT,
name VARCHAR (64) not null,
type VARCHAR (64) not null,
length INT not null,
content BLOB not null,
PRIMARY KEY (id)
)
Maarnu wilde ik er meer gegevens bij toevoegen, dus bijvoorbeeld:
CREATE TABLE images (
id int(11) NOT NULL auto_increment,
name varchar(64) NOT NULL default '',
type varchar(64) NOT NULL default '',
achternaam varchar(40) NOT NULL default '',
length int(11) NOT NULL default '0',
content blob NOT NULL,
PRIMARY KEY (id)
) TYPE=MyISAM;
Maar als ik dan nog wat toevoeg, met een formpje krijg ik deze fout:
Column count doesn't match value count at row 1
Hoe kan dat?