Page 1 of 1

How did he do this?

Posted: Mon Oct 10, 2011 4:46 pm
by thme
Hello there everybody! :D

okay im in a bit of a sticky situation here. I have a great idea for a website and im learning how to make websites atm. But there is something that i just can't seem to figur out.

I want to make a website kinda like this one. http://www.retardo.dk
It uses youtube embed code. that is what i want to do.
but looking at this website i can see that he uses php. on every video you click. so her must have a database of something right?
Is it a database of web pages or just the embeded code from youtube. thats where im confused. does the maker of retardo.dk have to make a new web page each time he finds a new video on youtube ? or has he some how have a standard web page but only changes the title and the code and comments and views and so on.

I really hope you guys can help me out. I am really intrested in coding now but im still not that good. Only been learning for 2 days from the internet :D

hope i get some replies!!!! :D

Re: How did he do this?

Posted: Tue Oct 11, 2011 5:49 pm
by Christopher
The database does not contain web pages or embedded code from youtube. It only contains the information unique to the clip, such at the title and movie ID. So to add a movie, you just add a record. There are probably additional fields for things like the date the file was added, etc.

Re: How did he do this?

Posted: Wed Oct 12, 2011 6:06 am
by thme
Could you explain a bit more ? :)

Re: How did he do this?

Posted: Wed Oct 12, 2011 6:03 pm
by Christopher
If you compare the HTML to play two different movies, what is different is what you need to store in each database record.