Close
1

Registration API For Android Application

Visitor’s Views: 431 It can help you for mobile application. <?php $host=”localhost”; $pass=”password”; $user=”user_name”; $dbname=”dbname”; $con=mysqli_connect($host, $user, $pass, $dbname) or die (‘connection faild’); $response = array(“error” => FALSE); if($_REQUEST[‘account_type’]!=”){ extract($_REQUEST); $query=” SELECT * FROM `table_name` WHERE username=’$_REQUEST[username]’”; $run=mysqli_query($con,$query); $numrow = mysqli_num_rows($run); if($numrow<1) { $query=”INSERT INTO `admin`(`name`, `phone_no`, `email`, `account_type`, `username`, `password`,`permission`) VALUES (‘$name’ , ‘$phone_no’ Continue Reading