yonda's Forum Posts

  • >

    > My login.php

    >

    > <?php

    > $username = $_GET['fname'];

    > $password = $_GET['fpass'];

    > $con=mysqli_connect("localhost","dbuser","dbpass","database");

    > // Check connection

    > if (mysqli_connect_errno())

    > {

    > echo "Failed to connect to MySQL: " . mysqli_connect_error();

    > }

    > <br>    $qz = "SELECT id FROM members where username='".$username."' and password='".$password."'" ;

    > $qz = str_replace("\'","",$qz);

    > $result = mysqli_query($con,$qz);

    > <br>    while($row = mysqli_fetch_array($result))

    > {

    > echo $row['id'];

    > }

    > <br>    mysqli_close($con);

    > ?>

    >

    > plz help

    Those <br> tags shouldn't be there anyway. I see they're in the tutorial code too - must be a copy-paste error.

    Nice that was the Error

    Thx you are my hero for today ;-)

  • you can use IF and so on in C2

    Add as an Object branch i think

  • 404 errorsite

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Really silly question, but this line here

    $con=mysqli_connect("localhost","dbuser","dbpass","database");

    Those are not your actual values correct?

    Correct! you wouldn't post them in a forum ;-)

  • try this

    Set b to round(random(254))

    Set g to round(random(254))

    Set r to round(random(254))

    Set layer "background" background color to rgb(r,g,b)

  • try without adding those ' characters to the ajax string. I have a rather complex login using ajax and get. What kept messing me up was exactly that.

    I did that, but still not working

  • One Way to do it

    give 2.nd Object Bullet behavior

    first turn off the Bullet Speed !

    Mouse -> On Left Button Clicked on Sprite2 -> Sprite -> Set Sine Inactive

    Add Action -> 2.nd Object -> Set angle toward another Object(Object 1)

    Add Action -> 2.nd Object -> Set Bullet Speed to 100

  • Browser -> Close doesnt seem to do anything for me.

    what do you mean?

  • yo try to make your own pokemon Style game, that way you can set the rules your way.

    I have created Rpg's so i know its a lot of work

  • capx?

  • plugin moveto

    PosA Start Position

    PosB End Position

    Add Event OnTouch --> Object --> Moveto PosB

    Copy that Event and Invert it then change Moveto PosB to PosA

  • anyone an idea?

  • use Tekniko's solution! just add an condition is on level01

    that way you can use 1 sheet

  • Yes

    Yes

    No Idea

    its just a lot of work

  • Its an Event:

    Physics behavior must be applied to the Object

    Add Event --> yourObject --> (Under physics) is sleeping