setdev's Recent Forum Activity

  • Problem is this: the result in the leadeboard is this:

  • header('Access-Control-Allow-Origin: *');

    $servername="myhost"; // Host name

    $username="myuser"; // Mysql username

    $password="mypass"; // Mysql password

    $dbname="mydatabase"; // Database name

    $tbl_name="mytable"; // Table name

    // Create connection

    $conn = new mysqli($servername, $username, $password, $dbname);

    // Check connection

    if ($conn->connect_error) {

    die("Connection failed: " . $conn->connect_error);

    }

    $sql = "SELECT user,score FROM starglass";

    $result = $conn->query($sql);

    if ($result->num_rows > 0) {

    // output data of each row

    while($row = $result->fetch_assoc()) {

    echo "" . $row["user"]. "|" . $row["score"]. "";

    }

    } else {

    echo "0 results";

    }

    $conn->close();

    • header('Access-Control-Allow-Origin: *');

      #header('Access-Control-Allow-Methods: GET, POST');

      now work..

      i have added in one file the control methods..

      Thank you.

    • So.. I got answer from G PLay

      "I'm only able to reset the upload key with the pem file which generate from Android Studio."

      So it's not working I need to install Android Studio

      I have used keystore-explorer!

    • I use mysite.com/myfile.php?user="userstoredinConstruct"&

      in the myfile..

      the sql code write to me the score of the user..

      sql_" select score from mytable where user='$user' etc..";

      $result = $conn->query($sql);

      if ($result->num_rows > 0) {

      while($row = $result->fetch_assoc()) {

      echo "".$row["score"]." ".$row["user"]."";

      }

      } else {

      echo "0 results";

      }

      $conn->close();

      All this ok...

      "but not in construct using Ajax"

      get the result? how to do?= with lost data? only?

      Thank you..

    • Try Construct 3

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

      Try Now Construct 3 users don't see these ads
    • Yes, but i need result from player name stored in mysql database..

      :)

      in sql ok, in construct with ajax i have problem .. i think only today problem :)

      get data from url like "playerrestult.php?playername" ... this is my problem for get data from url... i have used it many year ago but now i don't remember..

    • Hi to all..

      I have solved all problem with get username from gplay etc..

      Now..

      The game post all data..

      Using fast Ajax...

      Now,

      I have this unique data "userid"

      One ready page with get userid and list of the restult..

      I don't remember, with ajax , from get data from url like ""userpoints.php"

      the request to send userid and get data from it in construct...

      I don't remember how to use it..

      Thank you..

    • Example capx

      Link don't Work!

    • > Hi! Anyone could reupload the plugin? I have a broken link.

      I'm not sure if these are the latest versions, C2:

      https://www.dropbox.com/s/e3w1b3bt7skrj6d/lunarray.litetween.C2.zip?dl=0

      C3:

      https://www.dropbox.com/s/76x3cwd4udud07c/LiteTween%20v.1.7_c3runtime.c3addon?dl=0

      Hi, i have put in the plugin directory of c2 and i get this error "Unable to load plugin, found GetPluginSettings global but it is not a function", can help me, thank you!

    • I know what you want!

      Example: if selected a,b,c,d action for all

      use right mouse button to the 1st and second condition and make or

      Example:

    • Can work for post result for get data from mysql ..."in my example you can see that work"..

    • Work!

    setdev's avatar

    setdev

    Member since 4 Aug, 2014

    Twitter
    setdev has 1 followers

    Connect with setdev

    Trophy Case

    • 10-Year Club
    • Regular Visitor Visited Construct.net 7 days in a row
    • RTFM Read the fabulous manual
    • Email Verified

    Progress

    13/44
    How to earn trophies