View Single Post
  #1 (permalink)  
Old 05-08-2008, 07:15 PM
phpforfun's Avatar   
phpforfun phpforfun is offline
Programming God
 
Join Date: Feb 2008
Posts: 604
Last Blog:
ubuntu... do not upgra...
Rep Power: 6
phpforfun will become famous soon enough
Default help on a php 5 star rating system

Hey guys, sooo Im almost done with my site, all I need is to:
#1 finish the administrative side, (havent even started)
#2 finish the testimony/review, (the part where you rate the host)
#3 forums
#4 Random stuff (terms of service, about, support, help, etc)

So.. anywhere from a week to a month.


ALRIGHT!
Im extremely stuck on #2, I usually dont download and edit PHP scripts, just JS, but I had no idea where to start, other than maybe adding 1 to the number of times rated, then add the rating # to a field, so I could use some PHP math to get the average, and output that with a star image..

So I downloaded this script.
<see attached>

What im having an issue with is getting it to forget about the IP, forget about recording the raters data to a file, and make it use a MySQL database.

How can I make it so instead of adding data to a file with a bunch of BS, it just updates the rating field in the MySQL table

Thank you very much..

Last edited by phpforfun; 06-17-2008 at 11:05 PM.
Reply With Quote

Sponsored Links