Hello, I have been learning php stuff for the last few days. Recently, I have learned how to allow user registration, and I have made this simple voting code that allows people to "like" or "upvote" something on my site.
The way the site is set up is there is a list of songs and anyone can upvote songs they like. (The site is at rbnstuff.com) I have not set up user registration on the site, yet, but I know how to do it. (I've done it on another test site I have)
Anyways, I would like help with making it so only users can vote (I think I can figure that out), but make it so they can only vote once (I have no idea how to do this, and I've been Google-searching a lot).
Each song has an id, song title, artist title, and a bunch of other stuff (in a database)
and each user has an id, name, username, and password.
I am really new at this, so I am hoping someone can teach me how to do this rather than just giving me a code (because I probably wouldn't know what to do with it). Any help is greatly, GREATLY appreciated.