How do I add a login system using MySQL and Ajax?

Get help using Construct 2

Post » Sun Mar 02, 2014 10:30 am

I want to add a login screen in beginning of the layout using MySQL, PHP and only Ajax. Idon't know PHP but I know some BBQ basics of MySQL.
Banned User
B
32
S
6
G
5
Posts: 116
Reputation: 6,420

Post » Sun Mar 02, 2014 11:19 am

This is an awesome tutorial on how to do it.

Edit: I see you commneted on that tut? 11 months ago. Didn't it work for you?


Edit: Oh, its you. :( still disappointed. Sorry bye.
You think you can do these things, but you can't, Nemo!
Just keep reading.
Just keep learning.
B
65
S
16
G
9
Posts: 1,429
Reputation: 12,708

Post » Sun Mar 02, 2014 12:12 pm

What exactly you want to know? There a lot of things you have to know to do this. You need to learn PHP, MySQL and the AJAX technology.
B
14
S
3
G
1
Posts: 255
Reputation: 2,027

Post » Sun Mar 02, 2014 1:05 pm

@DUTOIT It didn't worked for me and a lot of other people. See the comments!
Banned User
B
32
S
6
G
5
Posts: 116
Reputation: 6,420

Post » Sun Mar 02, 2014 1:10 pm

DUTOIT wrote:This is an awesome tutorial on how to do it.

Edit: I see you commneted on that tut? 11 months ago. Didn't it work for you?


Edit: Oh, its you. :( still disappointed. Sorry bye.

No
Banned User
B
32
S
6
G
5
Posts: 116
Reputation: 6,420

Post » Sun Mar 02, 2014 1:25 pm

Ashesh wrote:@DUTOIT It didn't worked for me and a lot of other people. See the comments!


I achieve this 2 months ago

you need to make a registration system with database...

at the first time, I suggest to download XAMPP to make a local server.

after that, you need to make a database, and with the php you need to make a connection with the database and make some code to make a registration and send the information to the database.

construct2 will update the info with GET and POST like: registration.php?user=blabla&password=123456

when you make a variable in construct2 like user and pass, you need to get the information with AJAX with a "request" url, like:

"registration.php?username="&***variableincontruct2&"&"&"password="&***variableinconstruct2 "

you need to find some example on the web, and about this topic there are a lot of example with php and mysql :D
B
21
S
9
Posts: 298
Reputation: 2,967

Post » Sun Mar 02, 2014 1:28 pm

I can't find any construct 2 examples and also the tutorial also seems not to work
Banned User
B
32
S
6
G
5
Posts: 116
Reputation: 6,420

Post » Sun Mar 02, 2014 1:52 pm

Ashesh wrote:I can't find any construct 2 examples and also the tutorial also seems not to work


is not construct2, you need to make a php... construct2 will send e take just the information... you need to find in internet some example how to make registration and login with html and php, when you have php, just GET the variable with contruct2 in php file.

you need to make a local server to test in localhost
B
21
S
9
Posts: 298
Reputation: 2,967

Post » Sun Mar 02, 2014 1:53 pm

Any example or tutorial?
Banned User
B
32
S
6
G
5
Posts: 116
Reputation: 6,420

Post » Sun Mar 02, 2014 2:01 pm

If you are unable to find your own example of a php login system ... then you might be out of your league.

I have a tutorial for php/mysql multiplayer, it uses an automated registration technique based on the users browser, and registers that, and can find the user info based on that information.

tutorial

It is bit advanced, but it has the php file with code too with a lot of guidance.
the thing your looking for is on page 4.
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,567

Next

Return to How do I....?

Who is online

Users browsing this forum: Badmiracle, dop2000 and 19 guests