Scoring system that limits each user to one vote per article

I am creating a site based on PHP Web where people can download of content and other users can categorize content. How to create a rating system that accepts only one vote per user registered for each submission?

April 4, 2007 in macromedia.dreamweaver, AngryCloud wrote:

> When a user will decide on a certain picture, where is the information
> stored that says that this specific user voted on this particular
> image?

In the table, you create joining the two:

USERTABLE
UserID > key field
Username
...

PICTURETABLE
PictureID > key field
Nom_image
...

USERPICTURE
UserID > foreign key
PictureID > foreign key
PictureRating

--
Joe Makowiec
http://Makowiec.NET/
E-mail: http://makowiec.net/contact.php

Tags: Dreamweaver

Similar Questions

  • Need help to create a scoring system...

    Hey guys,.

    I followed a linehttp://www.flashclassroom.com/docs/documents/444_dragdroptargetsflashcs3.pdftutorial, I now in need of a scoring system that will make it so when all items are deleted on the good location, the user can click a button and go to the next section, I tried several things but none of them have worked, so I thought you guys might be able to help me...

    Here is my code:

    stop();
    
    
    //http://passyworldofict.blogspot.co.uk/
    
    
    var objectoriginalX:Number; 
    var objectoriginalY:Number; 
    
    
    germany_mc.buttonMode = true; 
    germany_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickupObject); 
    germany_mc.addEventListener(MouseEvent.MOUSE_UP, dropObject); 
    
    
    france_mc.buttonMode = true; 
    france_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickupObject); 
    france_mc.addEventListener(MouseEvent.MOUSE_UP, dropObject); 
    
    
    italy_mc.buttonMode = true; 
    italy_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickupObject); 
    italy_mc.addEventListener(MouseEvent.MOUSE_UP, dropObject); 
    
    
    uk_mc.buttonMode = true; 
    uk_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickupObject); 
    uk_mc.addEventListener(MouseEvent.MOUSE_UP, dropObject);
    
    
    function pickupObject(event:MouseEvent):void { 
    event.target.startDrag(true); 
    event.target.parent.addChild(event.target); 
    objectoriginalX = event.target.x; 
    objectoriginalY = event.target.y; 
    } 
    function dropObject(event:MouseEvent):void { 
    event.target.stopDrag(); 
    var matchingTargetName:String = "target" + event.target.name; 
    var matchingTarget:DisplayObject = getChildByName(matchingTargetName); 
    if (event.target.dropTarget != null && event.target.dropTarget.parent == 
    matchingTarget){ 
    event.target.removeEventListener(MouseEvent.MOUSE_DOWN, pickupObject); 
    event.target.removeEventListener(MouseEvent.MOUSE_UP, dropObject); 
    event.target.buttonMode = false; 
    event.target.x = matchingTarget.x; 
    event.target.y = matchingTarget.y; 
    } else { 
    event.target.x = objectoriginalX; 
    event.target.y = objectoriginalY; 
    } 
    }
    
    

    Any help is very appreciated.

    One way would be to keep a county that increment you each time that a correct water drop is established, when the count reaches a value that matches all the objects dropped correctly you can activate the button to exit.

    var int count = 0;

    function dropObject(event:MouseEvent):void {}

    event.target.stopDrag ();

    var matchingTargetName:String = "target" + event.target.name;

    var matchingTarget:DisplayObject = getChildByName (matchingTargetName);

    if (event.target.dropTarget! = null & event.target.dropTarget.parent ==)

    matchingTarget) {}

    event.target.removeEventListener (MouseEvent.MOUSE_DOWN, pickupObject);

    event.target.removeEventListener (MouseEvent.MOUSE_UP, dropObject);

    event.target.buttonMode = false;

    Event.Target.x = matchingTarget.x;

    Event.Target.y = matchingTarget.y;

    Count ++;

    if(Count == 4) {}

    buttonName.addEventListener... etc.

    }

    } else {}

    Event.Target.x = objectoriginalX;

    Event.Target.y = objectoriginalY;

    }

    }

  • ACS5: method of different external authentication for each user account

    ACS4 I could specify a different external authentication for each user account. I'm trying to find a way to do the same thing to the ACS 5? When I go under identity in Access Services, I see the system requirement: username I can use to identify the user who logs in, so that I can directly to a source of different identity, but the separate political configuration for each user is very inconvinient and would require hundreds of policies, in our case.

    I was hoping that we can create a kind of attribute for each user. SysAdmin > Configuration > dictionaries > identity > internal users. I created the new attribute called 'Storage of identity' with the enumeration type, which has 4 values: internal, Entrust Token, Token RSA, counts AD and checked the box "add a political Condition." I can then go under each user and select the storage of identity for each user. But now I can't find where I can use under part of identity of an access policy. I can use it under "Group mapping" but that maps to one group and not to an identity store. I need to use it under the identity somehow, but I can't find how.

    Hello Roman,

    The attribute you created will be available when the user is authenticated through internel ID store, so that you cannot use to select the store ID.

    The best way to do this would be to use other attributes to differentiate the identity store.
    Allows you to create a sequence of identity store so that for each user, ACS will try to authenticate by using multiple identity store.

    For example, you can use these:

    Network status

    > End Station filter

    > Device filter

    > Devide filter Ports

    Here you can import filters from a file and it would therefore be more scalable.

    Hope this helps.

  • Apple Extreme, Time Capsule and Express on the same system, what is the best way to set it up so that all devices smoothly from one end of the House to another?

    Apple Extreme, Time Capsule and Express on the same system, what is the best way to set it up so that all devices smoothly from one end of the House to another?

    I'm going to assume that you plan to have wireless devices.

    Let's say that the Capsule is your "main" router  If this is the case, then it must be located in the House, so that the distance between the time Capsule is the same for the outside walls of the House.

    Then, on the 'left' side of the House, looking for an airport to midway between the Capsule and time of the outer wall of the House. Do the same thing the 'right' side of the House.

    In other words, each of the two airports that "extend" the wireless signal are located at equal distance from the Capsule of time... but they are in opposite ends of the House.

    If you intend to interconnect all the airports and Time Capsule using a permanent, Ethernet wired... which by far is the 'best' way to put in place a network in terms of performance and reliability... then you can locate one of the devices anywhere you want.

  • How can change the bookmarks system wide for each new user?

    I wish that every new user who creates a count in a Debian linux system to achieve a specific set of bookmarks. I can't find where to put my custom bookmarks.html file to do this.

    Create a folder/defaults/profile in the Firefox installation folder and place a bookmarks.html file in this folder.

    This is the same folder of models for the new profiles that used in previous versions of Firefox, but all files that were there, then are now in archive omni.jar and the profiles folder in are no longer present.

  • I'm trying to redeploy Adobe Acrobat Standard DC to my users, because the licenses have been removed by mistake; they have up-to-date copies on their computers desktop and I got more licenses for each of them. My question is that each user will have to go

    I'm trying to redeploy Adobe Acrobat Standard DC to my users, because the licenses have been removed by mistake; they have up-to-date copies on their computers desktop and I got more licenses for each of them.

    My question is that each user will have to go through another download and installation of the product?

    I don't think. I guess that they would be required to sign in or provide the number you gave them. Acrobat would continue as a trial until they click on "license this software ' or see help > Sign In.

  • I changed my account from administrator to a limited account user, now I can't login as administrator

    I changed my account from administrator to a limited account user, as I had 2 accounts of users, two administrator accounts. Now I can't login as administrator. I can't find the administrator and any other accounts show that when I try to switch users.

    If you have seen that the users you listed: that's all nothing.  If your account was listed as an administrator, then it is what it is.  It does not change when you restart the system.  ;-)

    Initially, you said that you have CHANGED your limited user account:

    I changed my account from administrator to a limited account user, as I had 2 accounts of users, two administrator accounts.

    Given that, you didn't have and still two active accounts.  If your account is displayed in Mode safe (when you connect as built-in administrator) as an administrative level account - it still is.

    Was able to go in the control group/user accounts. He was the administrator, my account administrator and one guest account haven't turned on do not.

    Information about Windows XP HOME Edition and the built-in Administrator account:
    http://WindowsXP.MVPs.org/Admins.htm
    (... and how you can make it visible in normal mode again - the reason for which it automatically logs in has two components.  (1) you have no password on 'your account' and 2) you have two directors and so integrated is hidden).

    Try this (in normal mode).

    Start button--> RUN
    OR
    'Windows key' + R

    Type:

    cmd /k net localgroup administrators

    It should bring up a prompt with information.  What is listed under the:

    Members
    --------------------------------------------

    article?

    Same idea, different order...

    Start button--> RUN
    OR
    'Windows key' + R

    Type:

    cmd /k net localgroup users

    It should bring up a prompt with information.  What is listed under the:

    Members
    --------------------------------------------

    article?

  • It is necessary to download Google Chrome for each user on my Vista computer?

    Why, if I have more than one user, do I download google chrome for each user?  Is there a way I don't have to download a second for the other user?

    * original title - computer with more than one user *.

    Google Chrome since the normal download install personal folders to the user. This allows Chrome to be installed by users who have administrator privileges. Apparently you can install for all users with this procedure:

    http://www.Google.com/support/chrome/bin/answer.py?answer=118663

    Check Google forums, that applies and will be based in the future.

  • [Acrobat Reader DC] The HKCU registry key are not replicated for each user than Adobe Reader

    For Adobe Reader, all the registry keys that are added with the Adobe Customization Wizard are automatically added to each user. Unfortunately, it is not the same with Adobe Acrobat Reader DC.

    They have registry keys must be stored in HKEY_LOCAL_MACHINEWow6432Node\Adobe\Acrobat Reader\2015\Installer\Migrate to automatically add in the HKCU to the user at first launch of the application. But they are stored in HKEY_LOCAL_MACHINEWow6432Node\Adobe\Acrobat Reader\ [RegistryHiveName] \Installer\Migrate, as we can see on the screenshot below:

    reg.PNG

    The problem is probably one of the custom action. The registryhivename variable is not translated. I do not have a lot of research, but waiting on a solution from Adobe, I did a PowerShell script that move registry keys in the right place:

    Move-Item - Path "HKLM:\SOFTWARE\Adobe\Acrobat" [RegistryHiveName'] \Installer\Migrate\*'-Destination "HKLM:\SOFTWARE\Adobe\Acrobat" - force

    (PowerShell must be run in 32-bit)

    If Adobe can fix in the next release, !

    Hi, Maxim,.

    We recorded a bug for it and working on it.

    Kind regards

    Rave

  • Do I need separate Adobe contribute for each user copies?

    I'm looking into using Adobe Contribute as a CMS for our intranet. Each Department has their own section, which they would like to publish and modify as needed. My guess is 'Yes', but to confirm, if anyone knows - what I have to buy copies of Adobe Contribute for each user who will be granted these permissions? If there are 6 departments - are talking us about to buy 6 copies of Contribute to be installed on their computer? Please advice... Thank you!

    Hello

    Thank you to the Adobe community.

    I wish to inform you that a contribute license can be installed on both machines max, but executed on one machine at a time.

    In your case if 6 users will work to contribute entered then you will need to buy 6 licenses of Adobe Contribute. But if only three users will work on this topic at a time then 3 licenses of contribute would be sufficient for you.

    I hope this helps!

    Shekhar

  • How can I stop Firefox profiles great taking place on the C drive for each user?

    I have several users on a Windows Server 2008 R2 Remote Desktop Server (Terminal Server) and all of them use Firefox. Each of their profiles become huge because of their Firefox profiles.

    Seems that all the space the file cache. (C:\Users\User\AppData\Local\Mozilla\Firefox\Profiles\Profile.default\Cache)

    Is it possible to implement a policy within the program to clear the cache for each user or each time the browser is closed or when the user disconnects?

    Hello nukeit108, you can set the preference browser.cache.disk.enable to false, then no cache file will be written to disk (does not affect the entries cached in RAM).

    See also http://kb.mozillazine.org/Locking_preferences

  • How can I configure icloud so that the deleted messages on one device are deleted on all devices?

    How can I set up mail, (icloud) so that the deleted messages on one device are deleted on all devices?

    Use an IMAP or Exchange e-mail on her system.

  • Where to store the TS files for each user on a Terminal Server in Windows 2008 Server

    I have a TS w 2008 R2 and have a program that requires files kept for each user in their own folder, where it configures in TS. Each user will have its own folder cache for this program

    Each user login for TS and have a user on a shared folder, this program should have updated files in this folder.

    Hi DavidBabbel,

    The question you have posted is related to the area and would be better suited to the TechNet community. Please visit the link below to find a community that will provide the best support.

    http://social.technet.Microsoft.com/forums/en-us/winserverTS/threads

  • in the case of backup files, are both users of saved files, or files for each user must be backed up separately?

    original title: backup of files

    My wife and I use the same computer, but have different usernames (accounts).  My question is: when a backup occurs files, two files users are saved, or files for each user must be backed up separately?

    Hi toad133,

    ·         What type of backup that you talk too much?

    If you are referring to the automatic backup there backup everything that you have selected or defined to be backed up.

    If you are referring to the manual backup backs up what settings or files that you select to backup such as emails or files.

    Back up and restore: frequently asked questions

    http://Windows.Microsoft.com/en-us/Windows-Vista/back-up-and-restore-frequently-asked-questions

    I hope this helps!

    Halima S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • each user process in separated CPU core

    Hello

    I have 12 CPU cores; I want to run the process of each user in separate processor.

    So that each of them will receive good performance. I found on Google, but not exactly the solution affinity.

    Thank you

    What you're looking for can be.

Maybe you are looking for

  • Time capsule: no backup, device not found but internet work

    After my vacation my Time Machine's backups. The Internet works, but the backup utility cannot find the device more. The last backup is a few days before my holiday a month ago. In the Time Machine - page select disk (config) TC logo is there, but th

  • I have problem of cloud

    I constantly receive messages informing me that my ' I cloud of parameters must be updated. I checked several times and checked the password and all other parameters and unable to determine "what" needs to be updated? Any suggestions? Thanks for any

  • Apple Watch MLCF2 Sport

    Hello I know that this community is on the problems and bugs, but I couldn't find an answer anywhere on the web of th My question is what is the Sport of MLCF2 Apple Watch and what differences there are between this and the Apple Watch Sport. Thanks

  • HP Jet 7: Hp jet 7 overheated and shuts

    Hi, I was with my Hp jet 7 for watching a video and all of a sudden it stop. I felt the back and I realized that it was hot. I allow to cool overnight and in the morning I tried to turn it on, but nothing happens. I don't know if it's Fried or anythi

  • Play on XBox 360 is always disabled for videos.

    I downloaded a video on the xbox, but when I access it via smartglass on my Surface RT option play here is disabled. I also downloaded a video on the surface and the option to play on Xbox 360 is disabled. If I choose to open the file, and then play,