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
- IMG-URL

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.
B
5
S
1
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.
https://www.ravenheart.ca/home
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."
B
23
S
6
G
1
Posts: 1,419
Reputation: 4,857


Return to How do I....?

Who is online

Users browsing this forum: R0J0hound, RIDETHEPIG and 7 guests