Android PHP MySQL Tutorial – Create a User Registration App




For a complete video series with explanation visit this link https://goo.gl/ZzyeHm This is very simple android php mysql tutorial, but with no voice and no …

Original source


35 responses to “Android PHP MySQL Tutorial – Create a User Registration App”

  1. I cant upload files in hostinger(no file manager only file manager2) ! it asks for membership ? What do i do ? i dont want membership is any alternative , i have tried using 000webhost i saw many review that there is a problem using that so plz give a solution

  2. i already copy all tutorial code from other video but when i run that program , i get blank toast, what sould i do? i use hosting on idcloudhost , should i put localhost on define 'HOST' or put link php myadmin ?

  3. I get a PHP error message every time, i added some log messages, stops at stage 3 and jumps to "echo 'error';

    what could be the problem?

    <?php
    if($_SERVER['REQUEST_METHOD']=='POST'){
    $name = $_POST['name'];
    $username = $_POST['username'];
    $password = $_POST['password'];
    $email = $_POST['email'];

    if($name == '' || $username == '' || $password == '' || $email == ''){
    echo 'please fill all values';
    echo 'stage 0';
    }else{
    echo 'stage 1 ';
    echo "$name, $username , $password, $email";
    require_once('dbConnect.php');
    echo 'stage 2';

    $sql = "SELECT * FROM users WHERE username='$username' OR email='$email'";
    echo 'stage 3';

    $check = mysqli_fetch_array(mysqli_query($con,$sql));
    echo 'stage 4';

    if(isset($check)){
    echo 'username or email already exist';
    }else{
    $sql = "INSERT INTO users (name,username,password,email) VALUES('$name','$username','$password','$email')";
    if(mysqli_query($con,$sql)){
    echo 'successfully registered';
    }else{
    echo 'oops! Please try again!';
    }
    }
    mysqli_close($con);
    }
    }else{
    echo 'error';
    }

    ?>

Leave a Reply