nullpointerexception - Android Connection with MYSQL database using php -
i trying connect android login page mysql database present on server. but facing problem in passing php file through android. connection php mysql database successful, though. php code: <?php $host='localhost'; $uname='amodbina0106'; $pwd='amodbina200'; $db="kezin_king"; $con=mysqli_connect("localhost","amodbina0106","amodbina200","kezin_king"); if ($con->connect_error) { die("connection failed: " . $con->connect_error); } echo "connection successful"; $username = $_get['username']; $password = $_get['password']; $flag['code']=0; if($name == '' || $username == '' || $password == '' || $email == ''){ echo 'please fill values'; } else{ $sql=mysql_query("insert sample values('$id','$name') ",$con); ...