Since I am out of school for the summer, I want to learn PHP in my spare time. The way I have learned other languages in the past is by creating programs that I feel will be valuable to myself. I will also be learning dynamic web page development and about MySQL along the way.
So with PHP, I want to create a way to keep track of my DVD's, with a MySQL backend. I want to be able to add the DVD, along with any relevant information to that DVD.
After adding DVD's, I want to be able to search for items by title, actors, directors, etc.
So, this is what I feel should be in the tables for the DVD's. If there are any glaring problems please let me know.
isbn VARCHAR(12) NOT NULL
title VARCHAR(75) NOT NULL
rating VARCHAR(5)
genre VARCHAR(15)
studio VARCHAR(50)
director VARCHAR(50) NOT NULL
actor VARCHAR(50) NOT NULL
actor2 VARCHAR(50)
actor3 VARCHAR(50)
actor4 VARCHAR(50)
actor5 VARCHAR(50)
format VARCHAR(10)
aspectratio VARCHAR(5)
numdisc INT(2) NOT NULL
purchase DATE NOT NULL
PRIMARY KEY(isbn)
Those are the fields of the table tblDVD. Is there anything that should be changed in it?
Also, I would like to have a cover of each DVD when looking through the titles on hand. The way I think I should do this would be to have a field that would have the location of the covers picture. Is that a good way of doing it? Or should it be done in another way?
Thanks for the help!
So with PHP, I want to create a way to keep track of my DVD's, with a MySQL backend. I want to be able to add the DVD, along with any relevant information to that DVD.
After adding DVD's, I want to be able to search for items by title, actors, directors, etc.
So, this is what I feel should be in the tables for the DVD's. If there are any glaring problems please let me know.
isbn VARCHAR(12) NOT NULL
title VARCHAR(75) NOT NULL
rating VARCHAR(5)
genre VARCHAR(15)
studio VARCHAR(50)
director VARCHAR(50) NOT NULL
actor VARCHAR(50) NOT NULL
actor2 VARCHAR(50)
actor3 VARCHAR(50)
actor4 VARCHAR(50)
actor5 VARCHAR(50)
format VARCHAR(10)
aspectratio VARCHAR(5)
numdisc INT(2) NOT NULL
purchase DATE NOT NULL
PRIMARY KEY(isbn)
Those are the fields of the table tblDVD. Is there anything that should be changed in it?
Also, I would like to have a cover of each DVD when looking through the titles on hand. The way I think I should do this would be to have a field that would have the location of the covers picture. Is that a good way of doing it? Or should it be done in another way?
Thanks for the help!