Page 1 of 1

star rating code

Posted: Wed Oct 22, 2008 7:08 am
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????

Re: star rating code

Posted: Wed Oct 22, 2008 8:22 am
by aceconcepts
Assume $_SESSION['logged_in']==1 is determined from database check:

Code: Select all

 
if($_SESSION['logged_in']==1)
{
   //rate product
}
 

Re: star rating code

Posted: Wed Oct 22, 2008 8:27 am
by papa
<img src="star.gif" />

Re: star rating code

Posted: Wed Oct 22, 2008 8:32 am
by aceconcepts
This is a pretty neat star rating script in Ajax http://www.masugadesign.com/the-lab/scr ... ating-bar/

Re: star rating code

Posted: Wed Oct 22, 2008 8:39 am
by aceconcepts
This is another pretty cool example http://www.nofunc.com/AJAX_Star_Rating/