error in database_code.php
-
$sql = 'CREATE TABLE ' . WEBLIB_COLLECTION . " ( barcode varchar(16) not null unique check (barcode <> ''), title varchar(128) not null check (title <> ''), author varchar(64) not null check (author <> ''), subject varchar(128) not null check (subject <> ''), description text not null, category varchar(36) not null default '', media varchar(36) not null default '', publisher varchar(36) not null default '', publocation varchar(36) not null default '', pubdate date not null default '1900-01-01', edition varchar(36) not null default '', isbn varchar(20) not null default '', type varchar(16) not null check (type <> ''), thumburl varchar(256) not null default '', callnumber varchar(36) not null default '', publang varchar(36) not null default '', // pubpages int() not null default '', should be pubpages int not null default 0, pubimage varchar(256) not null default '', puburl varchar(256) not null default '', pubfilename varchar(256) not null default '', entrydate date not null default '1900-01-01', publicense varchar(256) not null default 'CC BY-SA', PRIMARY KEY (barcode), KEY (title), KEY (author), KEY (subject), KEY (isbn) );";
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘error in database_code.php’ is closed to new replies.