23.09.2018, 18:54
[GameMode] [MySQL R41-4] Login / Register Base Script
23.09.2018, 19:16
Quote:
Are you going to Complete it by adding more savings like Admin level And VIP or not?
|
Thank you!
27.09.2018, 12:08
PHP Code:
mysql_format(Database, query, sizeof(query), "INSERT INTO `users` (`Username`, `Password`, `IP`, `Cash`, `Kills`, `Deaths`) VALUES ('%e', '%e', '%e', 0, 0, 0)", PlayerName[playerid], PlayerInfo[playerid][Password], PlayerIP[playerid]);
// Insert player's information into the MySQL database so we can load it later.
mysql_tquery(Database, query, "RegisterPlayer", "i", playerid); // We'll call this as soon as the player successfully registers.
27.09.2018, 13:02
For the love of good look up what an ERD is and use it to establish a far better database design. If you're creating an RDB with one table, you're doing it wrong.
27.09.2018, 14:27
Quote:
PHP Code:
|
27.09.2018, 14:34
Good job.
Shame for the passwords though.
Shame for the passwords though.
27.09.2018, 14:48
27.09.2018, 15:23
pquery - processed query
tquery - threaded query
i assume ?
or its sencless?
tquery - threaded query
i assume ?
or its sencless?
27.09.2018, 23:52
Quote:
pquery - processed query
tquery - threaded query i assume ? or its sencless? |
tquery puts the query into a queue (all queries you put in this queue will be executed in order, in one thread - very important to know actually).
pquery creates a seperate thread for each query, so they will be executed simultanously. Whichever query is faster will return the result first. Meaning they will not be ordered.
28.09.2018, 19:13
You didnt created "Create Table if not exists" code?
28.09.2018, 19:39
07.10.2018, 20:23
Should I update this to BCrypt or let it be as it is?
08.10.2018, 16:37
let it be as it is
08.10.2018, 17:08
08.10.2018, 19:41
08.10.2018, 22:55
08.10.2018, 23:08
Quote:
The code is good, you could update it and add more thing like admin levels, VIP's, see if the player is logged in and etc, but so the code looks great, congratulations, I'm not fluent in English, sorry!
|
Because I don't have a lot of free time, and this is just a login / register base script (as you can see in the title) so I don't want to complicate it much with other useless stuff, thanks once again.
11.10.2018, 13:14
(
Last edited by user5487; 11/10/2018 at 01:53 PM.
)
every thing work fine and connect to sql but
for me it doesn't register anything
also when i input 1 character in register dialog it doesn't return and show register dialog again
for me it doesn't register anything
also when i input 1 character in register dialog it doesn't return and show register dialog again
11.10.2018, 14:11
11.10.2018, 14:35
From .sql dump file:
I don't know if you're using a VPS, but if you do, i suggest you to update your PHP version.
On My VPS currently.
Just an advice.
Quote:
-- PHP Version: 5.6.31 |
Quote:
-- Versione PHP: 7.2.9 |
Just an advice.
« Next Oldest | Next Newest »
Users browsing this thread: 1 Guest(s)