Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Please help rating system
Old 09-12-2007, 09:18 PM Please help rating system
Novice Talker

Posts: 10
Trades: 0
Hi all, firstly being a newbie, I would like to ask if you don't know the best place for a topic where should you post ?

I was told this would probably require php or there may be a prewritten php script, hense why I'm posting here.

I am looking for a 2 way feedback rating system, similar I suppose to what ebay has but on a much smaller scale, can anyone advice how this can be done

Many Thanks

D
Dee2007 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-13-2007, 04:52 PM Re: Please help rating system
solomongaby's Avatar
Webmaster Talker

Latest Blog Post:
How Do You Find Music Online ?
Posts: 522
Name: Gabe Solomon
Location: Romania
Trades: 1
can you elaborate more ?
__________________
If you like my posts ... TK is appreciated:)

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
solomongaby is offline
Reply With Quote
View Public Profile Visit solomongaby's homepage!
 
Old 09-13-2007, 10:31 PM Re: Please help rating system
Novice Talker

Posts: 10
Trades: 0
Hi, I'll try On the site professionals can post jobs/profiles etc

For example if there is a builder and he has employed a electrician to work with him on a project, when the project is complete they can both leave each other feedback that will be viewable on the web site for others to see.

Does that make sense? I not only need to know how to do it, but the best way

Thanks

D
Dee2007 is offline
Reply With Quote
View Public Profile
 
Old 09-13-2007, 11:11 PM Re: Please help rating system
goheadtry's Avatar
Webmaster Talker

Posts: 730
Name: John
Location: United States of America, California
Trades: 0
Why not try using the source code of a guest book to make this
or comment box source code and modify it like(youtube's comments)
__________________
Free $1 gift card when you signup at
Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

goheadtry is offline
Reply With Quote
View Public Profile Visit goheadtry's homepage!
 
Old 09-14-2007, 10:40 AM Re: Please help rating system
rogem002's Avatar
PHP Chap

Posts: 843
Name: Mike
Location: United Kingdom
Trades: 0
PHP and AJAX would be the best way forward, but I would not recommend something like ebay hehe. I've made something similar with a star system (like youtube) if your interested.
__________________
My Blog/Site:
Please login or register to view this content. Registration is FREE
rogem002 is offline
Reply With Quote
View Public Profile Visit rogem002's homepage!
 
Old 09-14-2007, 03:55 PM Re: Please help rating system
solomongaby's Avatar
Webmaster Talker

Latest Blog Post:
How Do You Find Music Online ?
Posts: 522
Name: Gabe Solomon
Location: Romania
Trades: 1
do you want anyone to rate anyone ... or only those that have been working with one another .... and one rating per job/project ?
__________________
If you like my posts ... TK is appreciated:)

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
solomongaby is offline
Reply With Quote
View Public Profile Visit solomongaby's homepage!
 
Old 09-18-2007, 10:38 PM Re: Please help rating system
killdude69's Avatar
Average Talker

Posts: 24
Name: Brandon Miller
Trades: 0
All you need is a drop select, a MySQL database, and knowledge of PHP. Now, if you view each item from a submission in a database and you use a variable in the url:
(e.g. http://site.tld/dir/item.php?id=16)
-----
You will likely do something like this:
PHP Code:
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
<select name="rate">
 <option value="1">Bad: 1</option>
 <option value="5">Good: 5</option>
 <option value="10">Best: 10</option>
</select>
<input type="submit" name="sub" value=" Submit " />
</form>
 
<?php
 
//Connect to DB Here
 
if(isset($_POST['sub'])){
  
$id=$_GET['id'];
  
$sql="SELECT rate FROM item WHERE id='$id'";
  
$result=mysql_query($sql);
  
$row=mysql_fetch_array($result);
  
$rate=$row['rate'];
  
// if have no counter value set counter = 1
  
if(empty($rate)){
    
$rate=1;
    
$sql2="INSERT INTO item(rate) VALUES('$rate') WHERE id='$id'";
    
$result2=mysql_query($sql2);
  }
// count more value
$addrate=$rate += $_POST['rate'];
$sql3="update item set rate='$addrate' WHERE id='$id'";
$result3=mysql_query($sql3);
mysql_close();
?>
 
Rating: <?php echo $row['rate']; ?>

__________________
Huhh, well, you screwed up this time dumby.

Free PHP BBCode parser & inserter:
Please login or register to view this content. Registration is FREE
killdude69 is offline
Reply With Quote
View Public Profile
 
Old 09-19-2007, 07:14 PM Re: Please help rating system
coolkbk585's Avatar
Be good this Christmas!

Latest Blog Post:
KBlog has been deativated
Posts: 642
Name: Kyle
Location: Ada, MI
Trades: 0
There are, of course, scripts on SourceForge that are pretty easy (with a little knowledge of PHP) to edit and bend to what you want it to do.
__________________
<?php if($Adsense_Revenue > 0): define('HAPPINES','100%'); else: define('HAPPINESS', '0%') endif; ?>
coolkbk585 is offline
Reply With Quote
View Public Profile Visit coolkbk585's homepage!
 
Reply     « Reply to Please help rating system
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.29917 seconds with 12 queries