Home Community Mys-Script Creative Off-Topic |
|
|
Thread Tools | Display Modes |
|
#1
|
||||
|
||||
Looking up user by id verses username?
Does anyone know how I would get the system to search for a user by their ID rather than username?
I'm assuming where it says on the donation file for example, $mysidia->user->username probably needs changed to something like user->uid So would I just change that to uid? I'm wanting my search area and what not and messages to look up people by their id's instead of usernames.
__________________
"You try you fail, you try you fail, but the only true failure is if you stop trying. So try again." - Haunted Mansion |
#2
|
||||
|
||||
Actually the system is able to construct a Member object based on either user ID or username, so that part of functionality is working. All you need to do is to change the database query code, aka the whereclause, to match a user ID rather than a username.
__________________
Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site. |
#3
|
||||
|
||||
I'm sorry, I'm still learning coding lol that database query code, is that something that gets changed in the database or in the file I'm working in?
__________________
"You try you fail, you try you fail, but the only true failure is if you stop trying. So try again." - Haunted Mansion |
|
|
What's New? |
What's Hot? |
What's Popular? |