Need help

This is a discussion on "Need help" within the PHP Forum section. This forum, and the thread "Need help are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > PHP Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Feb 9th, 2006, 05:14
New Member
Join Date: Sep 2005
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Need help

Basically, I am coding a community kidn of website. But where you have profiles and you can rate eadh otheres profiles etc. But i only want to be able to rate someones profile once then you cant rate that same person again. How would I go about doing this in sql?
Reply With Quote

  #2 (permalink)  
Old Feb 9th, 2006, 13:40
New Member
Join Date: Feb 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Need help

The general idea is that you are going to need to have a table in your DB that tracks who has rated each profile. Then when someone clicks on the link to rate a profile you will need to check that table to see if that person has already rated that the user.
Bryan
Reply With Quote
  #3 (permalink)  
Old Feb 9th, 2006, 19:29
Most Reputable Member
Join Date: Aug 2005
Location: North Wales, United Kingdom
Age: 21
Posts: 1,093
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to sypher
Re: Need help

easy.

Save the id of the person who has rated into a table, then and if statement to check all the id's against the current one.
Reply With Quote
Reply

Tags
help

Thread Tools

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 On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 11:44.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43