create object from php and database result

Get help using Construct 2

Post » Wed Jan 23, 2013 8:12 am

Hi all,

I have a situation, And I need to create object/character base on the result of my php and database result. I made an object but I am stock on how to create the object base on the result oh my php and mysql.
Every object will base on the user ID.

ex. Object1 will show if the result of mysql is including the user_id = 1

Please guys help if you know how to do this.
Heres my files.

https://www.dropbox.com/sh/6v7lnegdn0t2zn1/OzhaJhtjO6
george2013-01-24 03:44:55
B
11
S
3
G
2
Posts: 40
Reputation: 2,362

Post » Fri Jan 25, 2013 4:29 pm

Here try this. It creates an object for each value your php script outputs.
createObject.capx
B
54
S
28
G
18
Posts: 1,520
Reputation: 24,990

Post » Tue Jan 29, 2013 7:03 am

@ramones,

Thank you so much for the sample. Its very helpful.
By the way how to limit the object on x?

example:
If the return data is 15. currently it will display on x continuesly.
I want to limit that, object will display 1-5 on first level and it will breakline to enter the onject 6-10 to the new line.
In short, I want to display the object by 5. after count of 5, breakline to display the object.george2013-01-30 02:37:19
B
11
S
3
G
2
Posts: 40
Reputation: 2,362


Return to How do I....?

Who is online

Users browsing this forum: Artpunk, michaelverdi and 17 guests