Programming Tools
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 



Go Back   Dev Articles Community ForumsProgrammingProgramming Tools

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old April 12th, 2002, 06:16 AM
infamous-online infamous-online is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Posts: 403 infamous-online User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 27 m 25 sec
Reputation Power: 17
Cool Just A Suggestion....

could you write an article on your rating script one day
__________________
Apache Expert

Last edited by asp_man : April 12th, 2002 at 06:28 AM.

Reply With Quote
  #2  
Old April 12th, 2002, 09:10 AM
wAr-AnGeL wAr-AnGeL is offline
Forum Security
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Behind You
Posts: 479 wAr-AnGeL User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m 50 sec
Reputation Power: 17
Send a message via ICQ to wAr-AnGeL Send a message via AIM to wAr-AnGeL
yeah, i'd like to see that too. i'm working on a article script right now and it would be good to implement that into it.
__________________




"Only Linux users see the end of crashes."
- Pl4t0

Reply With Quote
  #3  
Old April 12th, 2002, 07:13 PM
mytch mytch is offline
Dev Articles Novice (500 - 999 posts)
 
Join Date: Apr 2002
Location: Sydney, Australia
Posts: 588 mytch User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 17
hey guys,
yeah sure thing. it's actually really to implement. makes use of cookies AND ip checking... one table with article id and vote... the i use a query like thsi to get the rating

$query = "select * from ratings where articleId = xxx";

then...

$result = mysql_query($query);
$row = mysql_fetch_row($result);
$num = mysql_num_rows($result);
$avgVote = 0;

if($num > 0)
$avgVote = $row[0] / $num;
else
$avgVote = 0;

then you can just check if there's at least three votes then display them...just so u dont get idiots rating articles 1/10... but yeah either me or tim or joe or annette will write an article on it soon...annette's getting into php and she's shown me some of her stufff...not bad at all.

Reply With Quote
  #4  
Old April 12th, 2002, 07:14 PM
mytch mytch is offline
Dev Articles Novice (500 - 999 posts)
 
Join Date: Apr 2002
Location: Sydney, Australia
Posts: 588 mytch User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 17
ah i stuffed that up but u get the idea haha BAH!

Reply With Quote
  #5  
Old April 12th, 2002, 08:19 PM
wAr-AnGeL wAr-AnGeL is offline
Forum Security
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Behind You
Posts: 479 wAr-AnGeL User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m 50 sec
Reputation Power: 17
Send a message via ICQ to wAr-AnGeL Send a message via AIM to wAr-AnGeL
i guess the rating form just inserts into that table and then your query averages it out and prints it?

Reply With Quote
  #6  
Old April 12th, 2002, 10:25 PM
infamous-online infamous-online is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Posts: 403 infamous-online User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 27 m 25 sec
Reputation Power: 17
Thumbs up

cool i can't wait, cause it looks neat

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingProgramming Tools > Just A Suggestion....


Developer Shed Advertisers and Affiliates


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.

© 2003-2018 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap