Page 1 of 1

Problem with Rating script

Posted: 01 May 2017, 16:04
by JanMolendijk
Dear admin how are you doing ?
I`m back again with something...

I wanna use this script:
https://coursesweb.net/php-mysql/rating- ... jax-php_s2
i changed it to mysql but it is not working also if i do the text option.

145.53.93.209/Rating/2/test.html

Problem with Rating script

Posted: 01 May 2017, 17:02
by Admin
Hello,
You should add the script directly in the root folder of you website.
If you added it into a sub-folder, try edit the path to "ratings.php" in the "ratings.js" file (line 105).

- Delete the beginning "/":

Code: Select all

cerere_http.open("POST", 'ratingfiles/ratings.php', true);
- Or, use absolute path (with "http:", or "https:"):

Code: Select all

cerere_http.open("POST", 'http://domein/subfolder/ratingfiles/ratings.php', true);
- Or, add the sub-folder name, with '/' from root:

Code: Select all

cerere_http.open("POST", '/subfolder/ratingfiles/ratings.php', true);

Problem with Rating script

Posted: 02 May 2017, 12:52
by JanMolendijk
Thanks for the support Admin it is working 1000%