star rating code

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
shubham_amola
Forum Newbie
Posts: 5
Joined: Thu Oct 16, 2008 8:09 am

star rating code

Post by shubham_amola »

i want to use a star rating in my website..a user can only rate product once he log in
cn ny1 help????
User avatar
aceconcepts
DevNet Resident
Posts: 1424
Joined: Mon Feb 06, 2006 11:26 am
Location: London

Re: star rating code

Post by aceconcepts »

Assume $_SESSION['logged_in']==1 is determined from database check:

Code: Select all

 
if($_SESSION['logged_in']==1)
{
   //rate product
}
 
User avatar
papa
Forum Regular
Posts: 958
Joined: Wed Aug 27, 2008 3:36 am
Location: Sweden/Sthlm

Re: star rating code

Post by papa »

<img src="star.gif" />
User avatar
aceconcepts
DevNet Resident
Posts: 1424
Joined: Mon Feb 06, 2006 11:26 am
Location: London

Re: star rating code

Post by aceconcepts »

This is a pretty neat star rating script in Ajax http://www.masugadesign.com/the-lab/scr ... ating-bar/
User avatar
aceconcepts
DevNet Resident
Posts: 1424
Joined: Mon Feb 06, 2006 11:26 am
Location: London

Re: star rating code

Post by aceconcepts »

This is another pretty cool example http://www.nofunc.com/AJAX_Star_Rating/
Post Reply