| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Registered User
Join Date: Apr 2007
Posts: 7
|
Want to create a basic database.
Hi, first post! I need some help, hoping someone knows more about this than me. I need a database that stores content submitted by visitors (videos, games, etc.). Each section (video, game, etc.) will be further broken down into genres (funny, serious, musical, etc.), and in each section, the most recent 10 submissions for each genre will be displayed. In addition, I'd also like there to be a way for visitors to view all "funny" content, across every section (funny videos, cartoons, etc. all displayed on the same page), as well as newest content submitted in all sections. A perfect example of this is Newgrounds.com - there's tons of media there, and every submission can be called up many different queries. Any ideas? Thanks, Aaron |
|
|
|
|
|
#2 (permalink) |
|
I like code.
|
You will probably want a database that has all the basics like the title of what is being uploaded, the description and such but also a parent_id and a sub_id. The parent_id would be something like the id of the type of page so like games, videos, images and the sub_id would be the genre in the page so funny, weird and so on. So you could call the sub_id to get the top 10 funny things from all the categories. |
|
|
|
#3 (permalink) |
|
Registered User
Join Date: Apr 2007
Posts: 7
|
That makes sense, thanks alot. I also have to figure out how to format the results to appear in a certain way, but this will definitely get me started. Would I be able to use a cgi script for a submission form, then use the MySQL for the database? |
|
|
|
#5 (permalink) |
|
Registered User
Join Date: Apr 2007
Posts: 7
|
Thanks, and finally, can I use Perl scripts to take the information from the MySQL database and display it on the site? Is that the most common/best way to do it? I'm just trying to get an idea of what subjects I should be learning. Thanks again, Aaron |
|
|
|
#6 (permalink) |
|
I like code.
|
Perl, PHP or a number of other languages. You may find that more hosts support PHP though. Perl and MySQL - PerlWiz: Using Perl with MySQL PHP and MySQL - MySQL AB :: Building a Database-Driven Web Site Using PHP and MySQL |
|
![]() |