MySQL + Array question

Get help using Construct 2

Post » Fri Jan 06, 2017 11:21 am

Hello folks , I want to create a way to get data from a SQL database wich I can get via AJAX and PHP code.

I know how to program PHP to get the specified data from the table wich are 3 colomuns :
- ID
- Name

Now for every entry of data I want to create a list made out of blocks with the data from the SQL DB.

What is the best way to proccess the SQL data from AJAX in C2 and how can I get the for each working so it creates the blocks and puts them in a list.
Posts: 15
Reputation: 678

Post » Mon Jan 09, 2017 4:36 pm

I used JSON for our game. You can use PHP JSON to create JSON strings and ship those to your client via AJAX.
I don't check the forums much anymore, but I will receive an email for PMs.

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
Posts: 1,419
Reputation: 4,867

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 4 guests