AlMmorpgMadness's Forum Posts

  • 1 posts
  • hello, I'm using a script that it's like yours but i have some problems whit ajax.

    my php analyze via post the username and the pw and return the id (that i use in-game)

    this is my php (is pretty simple)

    <?php

         $user = $_GET["user"];

         $pw = $_GET["pw"];

         $con = mysql_connect("http://zhentilnews.altervista.org/",xxxx,xxxx)

                   or die ("Connessione al server non stabilita");

         $db = mysql_select_db ("my_zhentilnews", $con)

                  or die ("Connessione al Db non stabilita");

              $query = ("SELECT ID FROM DATI_PG WHERE USER ='".$user."' AND PW = '".$pw."'");

              $res = mysql_query($query)

                   or die("Query non valida: " . mysql_error());

              $row = mysql_fetch_array($res) or die(mysql_error());

              echo ($row['ID']);

         mysql_close($con);

    ?>

    and this is my construct script to use it

    img195.imageshack.us/img195/5053/img15052013220518.png

    you can also check the php page

    using -> user = pippo & pw = bau

    if someone can help it will be very appreciated

    this thing is freaking me out :

    ty

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 1 posts