krisis007 Posted February 16, 2008 Report Share Posted February 16, 2008 Sakiet kadam ir users rating sistem??? Es mekleju google bet neko noderigu neatradu. Link to comment Share on other sites More sharing options...
Kavacky Posted February 17, 2008 Report Share Posted February 17, 2008 www.hotscripts.com Link to comment Share on other sites More sharing options...
Mikijs Posted February 17, 2008 Report Share Posted February 17, 2008 man ir :) sistema. Link to comment Share on other sites More sharing options...
Aleksejs Posted February 17, 2008 Report Share Posted February 17, 2008 Nu viens no variantiem: tabulā, katram lietotājam glabāt vēl rate_summ un rate_count Un rate = rate_summ / rate count pie reitinga nobalsošanas luietotājam attiecīgi pieskaita attiecīgo reitinga vērtību ciparam rate_summ un palielina par viens ciparu rate_count. Ja rate_count = 0, tātad lietotājam nav reitinga. Link to comment Share on other sites More sharing options...
king999 Posted February 19, 2008 Report Share Posted February 19, 2008 Ja gribi būt pavisam kruts vari pielikt tā, ka attiecīgi tik displejots attēls. Bet man šķiet, ka principā labāk, būtu nevis šeit sql DB tīt iekšā, bet vnk TXT failā ar fwrite glabāt, un vienā glabāt Apm: user_votes: username|vote_sum vote_count: username|vote_count un tad vnk izdalīt tos abus. Protams tad būtu jāuzliek .htaccess fails, kas aizliedz abus failus labot caur browseri. Cheers. Link to comment Share on other sites More sharing options...
Recommended Posts