asdfghjkot's Recent Forum Activity

  • I can change it. Thanks. Also, another question. Can I still manipulate it even though the serialized array(which I will turn to a json_encode), is inside another json_encode result?

  • I have a column that contains a PHP serialized value and I was wondering how can I "unserialize" the value in construct? Thank you in advance again. :D

    Tagged:

  • I have an ajax request that stores the result in an array. It loops and spawns an image. I tried doing the one with the image point, but it just spawns all the images on that image point.

  • I have a number of objects that I wanted to spawn over an object after an ajax request had finished loading. What I wanted to do is something that is like the one in the image. Also, if possible, make the object to have a scroll or a pagination or something that can enable for all the stuffs to show. Hope someone can help me with this. It would be a big help in what I'm doing right now. Thank you in advance :D

  • Nvm. I already got it to show in the array. I just did some adjustments in both of my construct and php file. Thank you. :D

  • Yes, I did. It's the third picture. The output is in a json_encode format as well.

  • This is a part of the data that I'm trying to pass...

    {"c2array":true,"size":[46,12,1],"data":[{"ID":"36","avatar":"20","item_id":"1","quantity":"2","icon_position":"0","storage":"1","destroyed":"1","value":"0.04","level_exp":"0","perks":"0","stats":"0","log":"a:4:{i:0;s:48:\"Claimed last: - Thu, 28 Nov 2019 03:25:50 +0000\";i:1;s:48:\"Claimed last: - Thu, 28 Nov 2019 03:26:55 +0000\";i:2;s:48:\"Claimed last: - Thu, 28 Nov 2019 03:29:22 +0000\";i:3;s:60:\"Used for extraction last: - Thu, 28 Nov 2019 03:31:36 +0000\";}"}]}

    I was wondering how can that be like...

    the [object object] be replaced with the values indicated above.

  • The title says it all. Also, here are some pictures to help in solving the problem. Thank you in advance :D

    Tagged:

    Hi. I've been trying to populate a dictionary with rows from a PHP file. The dictionary contains keys, while the value is just [Object object].

    Here's my code:

    function ajax_load_inventory($source = '1',$player_id) { $player_id = 20; // Build query - grab all rows from inventory table that are owned by the player id $sql = "SELECT * FROM inventory WHERE avatar= '".$player_id."'"; // Execute the query and store the result $results = execute_sql($sql,'0'); // Fetch all $row = mysqli_fetch_all($results, MYSQLI_ASSOC); //Output array for c2array use outputAsC2DictionaryJSON($row); } // ends function load_inventory($source = 'inventory',$player_id) { function outputAsC2DictionaryJSON($avatar_inventory) { $data = array( 'c2dictionary' => true, 'data' => $avatar_inventory ); outputData($data); } function outputData($data) { echo json_encode($data); // exit(1); }

    Here's the dictionary...

    Hope someone can help me with this. It would be a big help. Thank you in advance.

    Tagged:

  • Hi. I'm new to construct. How do you install or include this to construct? Thank you in advance

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Thank you very much!

  • Hi. I'm new and currently studying Construct. Are there any tutorials on how to include PHP in Construct? Thank you in advance!

asdfghjkot's avatar

asdfghjkot

Member since 4 Dec, 2019

None one is following asdfghjkot yet!

Trophy Case

  • 4-Year Club
  • Email Verified

Progress

5/44
How to earn trophies