How do I access a database?

Get help using Construct 2

Post » Thu May 22, 2014 7:52 am

Hello,

I would like to know if there is any way in which i can access a database to get info, so if i make a login system i can keep the same app but keep changing the database. If no, atleast can i make a login system in any other way?

Thanks,
Ashwin
B
15
S
3
G
1
Posts: 111
Reputation: 1,664

Post » Thu May 22, 2014 8:15 am

are you talking about a mysql database? if this is the case, you can use the plugin : "ajax".

See the screenshot.

With ajax you request your php page on your website.
In this php page you do the request on database (mysql for example) and the php page return the result.
When ajax complete the request you can do what you want with the result where you want.

You can do the same for post information in database , you just use POST instead of GET.
You do not have the required permissions to view the files attached to this post.
B
13
S
3
G
2
Posts: 49
Reputation: 1,675


Return to How do I....?

Who is online

Users browsing this forum: RobertMKD and 2 guests