
Re: How do I create a 10 star rating system?
as much as I would enjoy coding the site for you i realyl don't have the time for it.
I suggest you try googling for "php dynamic sites" or something similar.
You really should as much as possible write your code on your own.
That will make searching for errors and altering the code later much easier as you will know what and where the codes are.
also you should consider keeping all your db info (username, password, db name and so on) in a seperate file that you include (include_once filename.php;)
Basically you should keep all code that is used in many pages in a seperate file that you include. The first time you need to change something, the db password for example, you will be very happy that you only need to change it in that one file instead of in every file it is used!
anyhow...
I don't know if you plan to host the games or just embed them from somewhere else..
but assuming you do not host them yourself.
a simple table containing
game_id auto increase PK
number_of_ratings
rating
embed_code
genre
will get you started,
using a page similar to the one I showed you in the last post you can then extract everything needed to load a game.
basically where it says
// Put code for loading the game here.
// ***
do a mysql_query and select the embed_code and echo it to the page.
Genre can for example be "platform", so that you in the menus can get all games it that genre.
If you build your site this way, it will when it's done be "easy" to manintain. But there will be some intense coding for you until you get all the menus and other stuff done
I think you should read through the code i wrote earlier and try to understand what it is doing.
w3school and php.net will help you alot! and ofc google
and feel free to ask for more help here!
and perhaps someone else than me can give you more help on this
good luck!