#1
|
||||
|
||||
MySQL Help
I know the title is pretty vague but I am hoping someone can help me out here.
So the way the friends system works is it adds a user's id under the friend part in the database, but because users can have multiple friends it shows like "1, 16, 33" (for example). Clearly the comma is a separator, but I do not understand how new entries are added in that format or how the script knows to read each individual entry and use that information? What I am trying to do is set up a system to record which users have used each promocode. So a user uses a promocode and it adds their ID to the list of those who've used it. Then I can add a setting option so that the admin can choose to make the promocode only redeemable once per user. I can also eventually use it to set up a more stream-lined quest system than what I am currently using. I found this chunk in class_friend.php which I think is relevant: PHP Code:
PHP Code:
But this is all I've got and right now it's pretty useless until I figure out how to properly add uids to the database. If someone could help me I would really, really appreciate it <3
__________________
My Mods Site (1.3.4, 2020 Mods) Last edited by Abronsyth; 12-29-2016 at 12:39 PM. |
|
|
What's New? |
What's Hot? |
What's Popular? |