Ok here goes -
Code:
#
# Table structure for table `library_cat`
#
CREATE TABLE library_cat (
ID int(11) NOT NULL auto_increment,
Name text,
description varchar(255) default NULL,
PRIMARY KEY (ID)
) TYPE=MyISAM PACK_KEYS=0;
#
# Dumping data for table `library_cat`
#
INSERT INTO library_cat VALUES (1, 'Dogs', '');
INSERT INTO library_cat VALUES (2, 'Cats', '');
INSERT INTO library_cat VALUES (3, 'Birds', '');
# --------------------------------------------------------
#
# Table structure for table `library_files`
#
CREATE TABLE library_files (
ID bigint(11) NOT NULL auto_increment,
name text NOT NULL,
description text NOT NULL,
scid bigint(11) NOT NULL default '0',
PRIMARY KEY (ID)
) TYPE=MyISAM;
#
# Dumping data for table `library_files`
#
INSERT INTO library_files VALUES (1, 'Tweety Pie', 'Im a Yellow Bird', 3);
INSERT INTO library_files VALUES (2, 'Tom', 'I am a ginger cat', 2);
INSERT INTO library_files VALUES (3, 'Jake', 'Im a black dog', 1);
INSERT INTO library_files VALUES (4, 'Jeff', 'Im a black dog', 1);
# --------------------------------------------------------
#
# Table structure for table `library_subcats`
#
CREATE TABLE library_subcats (
ID bigint(11) NOT NULL auto_increment,
name text NOT NULL,
description varchar(255) NOT NULL default '',
cid bigint(11) NOT NULL default '0',
PRIMARY KEY (ID)
) TYPE=MyISAM PACK_KEYS=0;
#
# Dumping data for table `library_subcats`
#
INSERT INTO library_subcats VALUES (1, 'Black', 'Black dogs', 1);
INSERT INTO library_subcats VALUES (2, 'Ginger', 'Ginger cats only', 2);
INSERT INTO library_subcats VALUES (3, 'Yellow Birds', 'Yellow birds only', 3);
Thx again
Bookmarks