Home Community Mys-Script Creative Off-Topic |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
User and pet IDs, server cleanup
It would be nice to have a system where each user is assigned a user id that denotes when they signed up (for example, 1 is the first person to sign up and so on) and I'd also like this to apply to pets too, when pets are created (and have it not change when pets are adopted/transferred).
Also, it'd be nice to have a feature like Wajas has with the OWF. Basically, any pets sent to the OWF will eventually be deleted off the server to save space. |
#2
|
||||
|
||||
This is already the case with the user and pet id columns in the database. ? By default, these are incremental and each one will be one digit more than the last one and the id will never change under any circumstances. For example, you can display a user's id by calling it from the database with $mysidia->user->uid (referencing the uid column).
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it. |
#3
|
|||
|
|||
Quote:
|
#4
|
||||
|
||||
You don't. It's automatic. You can view your database in your server's phpMyAdmin or similar tool, whatever is installed with your hosting.
__________________
Please do not contact me directly outside of Mysidia.
I also cannot troubleshoot code more than two years old - I legit don't remember it. |
#5
|
|||
|
|||
Quote:
Can you have the ids show up in the links and user/pet pages though? Last edited by PixelRobot; 03-09-2021 at 10:07 AM. |
|
|
What's New? |
What's Hot? |
What's Popular? |