Slice's Recent Forum Activity

  • because, all the scores from all users, should be stored in a server ... We can not be automatically ....

  • worked, Thank you very much <img src="smileys/smiley1.gif" border="0" align="middle" />

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Not working..

    -------------------------------

    i create this php mysql database to post data but writes as invisible records..

    ------------------------------------------

    <?php

    $host="localhost"; // Host name

    $username="root"; // Mysql username

    $password=""; // Mysql password

    $db_name="demo"; // Database name

    $tbl_name="demo"; // Table name

    // Connect to server and select database.

    mysql_connect("$host", "$username", "$password")or die("cannot connect");

    mysql_select_db("$db_name")or die("cannot select DB");

    $name = $HTTP_GET_VARS[name];

    $hiscore = $HTTP_GET_VARS[hiscore];

    // Insert data into mysql

    $sql="INSERT INTO $tbl_name(name, hiscore)VALUES('$name', '$hiscore')";

    $result=mysql_query($sql);

    // if successfully insert data into database, displays message "Successful".

    if($result){

    echo "Successful";

    }

    else {

    echo "ERROR";

    }

    // close connection

    mysql_close();

    ?>

    -----------------------------------------------------

    and constuct 2 create 2 fields text box

    and submit button with code...

    AJAX | Request "http://localhost/score/score.php" (tag"")

    -------------------------------------------------------

    work but in mysql writes as invisible records

  • How to create high score table,

    With Construct 2 AJAX / PHP WITH MYSQL OR PHP WITH TXT FILE

Slice's avatar

Slice

Member since 12 Jan, 2012

None one is following Slice yet!

Trophy Case

  • 12-Year Club
  • Email Verified

Progress

13/44
How to earn trophies