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.
|
|
|
|
|
![]() |
||
Need help
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
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?
|
|
|
|
#2
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
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. |
![]() |
| Tags |
| help |
| Thread Tools | |
|
|