How did he do this?

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
thme
Forum Newbie
Posts: 3
Joined: Mon Oct 10, 2011 4:38 pm

How did he do this?

Post 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
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: How did he do this?

Post 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.
(#10850)
thme
Forum Newbie
Posts: 3
Joined: Mon Oct 10, 2011 4:38 pm

Re: How did he do this?

Post by thme »

Could you explain a bit more ? :)
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: How did he do this?

Post 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.
(#10850)
Post Reply