since I can't find any DVD collection script that suits my wishes, I thougt it might be possible to create my own, using the BAB as a basic. But I'm already stuck at creating the database, as my MySQL knowledge isn't that much. I've added columns that I want in the table but I'm not sure how to format them in order to create them right. I hope there's someone willing to help me out here.
This is the coding I have until now. Where it says "..??" it means I have no clue on how to add it, of all the other things I'm also not quite sure:
CODE
<?php
mysql_connect ('localhost', 'db_username', 'db_password');
mysql_select_db ('db_name');
$sql = "CREATE TABLE php_dvdcol (
id int(20) NOT NULL auto_increment,
title varchar(255) NOT NULL,
subtitle varchar(255) NOT NULL,
image ..??
ean varchar(20) NOT NULL,
year int(4) NOT NULL,
release int (10) NOT NULL,
kijkwijzer ..??
languages varchar(255) NOT NULL,
subtitles varchar(255) NOT NULL,
ratio ..??
audio ..??
genre ..??
region ..??
color ..??
length ..??
director varchar(255) NOT NULL,
writer varchar(255) NOT NULL,
producer varchar(255) NOT NULL,
music varchar(255) NOT NULL,
studio varchar(255) NOT NULL,
cast varchar(255) NOT NULL,
plotline longtext NOT NULL,
added int(20) NOT NULL,
PRIMARY KEY (id),
UNIQUE KEY id (id)
)";
$result = mysql_query($sql) or print ("Can't create the table 'php_blog' in the database.<br />" . $sql . "<br />" . mysql_error());
mysql_close();
?>
mysql_connect ('localhost', 'db_username', 'db_password');
mysql_select_db ('db_name');
$sql = "CREATE TABLE php_dvdcol (
id int(20) NOT NULL auto_increment,
title varchar(255) NOT NULL,
subtitle varchar(255) NOT NULL,
image ..??
ean varchar(20) NOT NULL,
year int(4) NOT NULL,
release int (10) NOT NULL,
kijkwijzer ..??
languages varchar(255) NOT NULL,
subtitles varchar(255) NOT NULL,
ratio ..??
audio ..??
genre ..??
region ..??
color ..??
length ..??
director varchar(255) NOT NULL,
writer varchar(255) NOT NULL,
producer varchar(255) NOT NULL,
music varchar(255) NOT NULL,
studio varchar(255) NOT NULL,
cast varchar(255) NOT NULL,
plotline longtext NOT NULL,
added int(20) NOT NULL,
PRIMARY KEY (id),
UNIQUE KEY id (id)
)";
$result = mysql_query($sql) or print ("Can't create the table 'php_blog' in the database.<br />" . $sql . "<br />" . mysql_error());
mysql_close();
?>
I want it to look like this in the end: http://dvd.in-perfect-harmony.net/8_Mile.pdf
For the image part I want to be able to upload a file, just like uploading joined buttons in Enth. For the 'kijkwijzer' part I have some small images that I would love to be able to select or anything to display them.
Well, anyone who wants to help me out?
If this is way over my head (as building scripts is not what I normally do) please tell me, so I can let go of my little dream having my own dvd collection displayed the way I want it.
Thanks so much in advance!