Hallo Leute,hoffe ihr könnt mir helfen.
Habe ein 5 Star Rating System von http://www.anthonydetamore.com/scripts/rating habe es auch schon installiert.Es ist alles so zu sehen wie es soll,bloss wenn ich drauf klicke dann lädt er die Seite neu aber speichert keine Bewertung. In der Anleitung die ich hier rein setze verstehe ich Punkt 2 nicht.
To install this script do the following:
- Set up your database and get the following information:
Host Name
User Name
Password
Database Name
2)Enter the following SQL statement with your desired table name (replace tableName) into your database to create your ratings table
CREATE TABLE `tableName` (
ip
varchar(15) NOT NULL,
rating
varchar(1) NOT NULL,
page
varchar(99) NOT NULL,
PRIMARY KEY (ip
,page
)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-
Enter your credentials into the constants.php file
-
Upload rate.js, and the contents of the include and stars folder to your server.
-
On your PHP page, add the following line into your <head></head> tags:
<SCRIPT LANGUAGE="JavaScript" SRC="rate.js"></SCRIPT>
-
Place the following line of code where you want the rating script to show up on your page. Replace identifier with a desired keyword:
writeRate(identifier);
-
To add other instances of this script on this page or other pages, just change the identifier keyword.
-
Enjoy! Punkt 2.
To install this script do the following:
- Set up your database and get the following information:
Host Name
User Name
Password
Database Name
2)Enter the following SQL statement with your desired table name (replace tableName) into your database to create your ratings table
CREATE TABLE `tableName` (
ip
varchar(15) NOT NULL,
rating
varchar(1) NOT NULL,
page
varchar(99) NOT NULL,
PRIMARY KEY (ip
,page
)
) ENGINE=MyISAM DEFAULT CHARSET=utf8;
-
Enter your credentials into the constants.php file
-
Upload rate.js, and the contents of the include and stars folder to your server.
-
On your PHP page, add the following line into your <head></head> tags:
<SCRIPT LANGUAGE="JavaScript" SRC="rate.js"></SCRIPT>
-
Place the following line of code where you want the rating script to show up on your page. Replace identifier with a desired keyword:
writeRate(identifier);
-
To add other instances of this script on this page or other pages, just change the identifier keyword.
-
Enjoy!
Danke schon mal im Voraus