Coding problem in php

I have a gaming website and I want to make a 5-star rating system for my games but the only problem is when I searched in google and youtube on how to do that all people teaching you how to do it if you website content load dynamically from a database but my website games don’t load from a database. does there any way I can do rating system if my content doesn’t load from a database.

thanks for the help :grinning:

I’ll get someone to help you :slight_smile:

1 Like

Please explain me how do you load your games content ?

<?php
// the folder that holds the meta tags and some codes
 include '../include/mainheader.php'; 
// the folder holding the title and other stuff
include APP_ROOT . '/browser-games/main_page_header.php';
echo '
<link rel="next" href="https://gamehup.com/browser-games/page-4" />
<link rel="prev" href="https://gamehup.com/browser-games/page-2" />
<meta name="robots" content="noindex, follow">
</head>';
// the folder host the header code 
include INCLUDE_ROOT . "/include-index.php";
// getting the function file for the login script
include INCLUDE_ROOT . '/functions.php';
// getting the connection file 
include APP_ROOT . '/browser-games/dbh.php';
  ?>

<div class="container">
	<div class="row">
		<div class="col-12 text-light font-weight-bold">
			<div class="row bg-dark">
				<h2 class="h3 p-3 col ml-auto">
				Casino Blackjack
			</h2>
			<span class="ml-auto">FullScreen</span>
			</div>
			<div class="col-12">
<div class="row">
<div class="ml-auto mr-auto p-3">
	<!-- the game embed code -->
		<script src="https://cdn.htmlgames.com/embed.js?game=CasinoBlackjack&amp;width=800&amp;height=480&amp;bgcolor=white"></script>
</div>	
</div>
			</div>
		</div>
	</div>
</div>

this is how I load content to my website
with regular HTML with

@Joffre
this is how I load content to my website
with regular HTML with

You can try on Jquery and CSS with this plugin, just need to configure and adapt to your needs, there is examples and ez code with a svg image system… hope it works for what you need https://github.com/prrashi/rateYo

:eyeglasses: :venezuela:

1 Like

Hey @AwadGorg

You can manage files (with JSON data) to save, update ratings. But, the thing I can recommend is add all your game details to a database. In real world, db-less blogs are hard to manage and maintain. I’m pretty sure that it won’t take much time to change website from static to dynamic.

If you need futher help, we are here to help. :wink:

1 Like

will free hosting let me create more than 100 tables in the database

100 tables used for? :slight_smile:

if i want to change my website from static to dynamic i need to put most of my web site pages in tables

Woah, like what? :slight_smile:

Hey @AwadGorg!

If you’d like, I have a star rating service. You can check it out here:

i have at least 40 flash based games in my website and right now am making html 5 based games to embed in my website also tell next month both will be 80 pages not to mention my forum pages not to mention landing pages i thinking on making all that dynamically load

That sound really amazing AwadGorg, are you hardcoding everything or using any CMS solution?

i like doing it the hard way lol

1 Like

I want to make the rating system like this

but I don’t want to embed their code I want to be able to code it myself but I don’t know where to look. to learn how to do this.
right now I embedded a code from this website on my website localhost and it works fine.

would be nice to have some knowlodge of JQuery for start… you can go to a very usefull site that I used back in days https://www.codecademy.com (look for the free jquery tutorial) that will help you out a little bit and then you can move fordward hardcoding the rating plugin by yourself…

1 Like

OK thank you, right now am learning laravel i was planing to move in to java script and it libraries i will bookmark the link you gave it to me.
thanks again for the help.

1 Like