Cellphonesguide.net
Login or Register to remove ads! You're browsing our forum and website as a Guest meaning you can only see a portion of the forum in read-only mode.
Android Android Games iOS iPhone Samsung Galaxy Google Pixel OnePlus Huawei Xiaomi
Discord Social FB Group Games Ask a Question Apps

Recent Posts

Pages: 1 ... 8 9 [10]
91
Android Games / Re: Tower Defense
« Last post by Muneera123 on December 27, 2017, 06:23:48 AM »
Tower defense is a one of the android game....it is a video game in this game goal is player territories obstructing the enemy attackers, this game is very interesting game  i like this game Ability to repair obstructions,Ability to upgrade obstructions this the tower defense game
92
Android Apps / Re: Android Apps on Google Play
« Last post by shilpa111 on December 26, 2017, 08:04:40 AM »
Hello everyone,google play has something for every one. Browse and install your favorite Android apps and games on your Android phone, tablet, TV or from the Web.
http://www.certvalue.com/iso-9001-certification-in-mumbai/ " title="ISO 9001 Services in Mumbai">ISO 9001 Cost in Mumbai
93
Which smartphone is best for me? / Re: Apple iPhone 7 Plus
« Last post by Muneera123 on December 23, 2017, 08:06:44 AM »
Hi, I am working as a SEO Executive in Certvalue company. In that we are providing ISO Certification Services to different organizations in the world. majorly Saudi Arabia, Iraq, Kuwait, India, Singapore, South Africa, Oman, England etc.

94
Which smartphone is best for me? / Re: Apple iPhone 7 Plus
« Last post by shilpa111 on December 22, 2017, 11:42:57 AM »
hi guys,i also used in i  phones 7 smartphone is very nice ,so many uses there in mobiles.
95
Android / Re: Download Open GAPPS (Google Apps)
« Last post by telplaza07 on December 14, 2017, 10:03:10 PM »
Quote from: "Sobhana123, post: 458, member: 147"
I am also using android phone but i don't how to download google apps.

Open your Chrome browser or your already installed Google Play app, search for your app and press on 'Install' button.

Example: https://play.google.com/store/apps/details?id=com.whatsapp&hl=en



--
96
Which smartphone is best for me? / Re: Which Cell Phone Should you Get?
« Last post by Muneera123 on December 13, 2017, 01:36:41 PM »
Samsung Galaxy note 8 phone is good .chaging also good  ,big sreen also front and back camera also nice anyways phone is very nice still i using that mobille ...
How to get ISO 27001 Certification in Kuwait
97
General News & Discussion / Re: Funny iPhone 7 :)
« Last post by Laxmi123 on December 13, 2017, 12:10:44 PM »
don't  know about this iphone7 can u please explain that features.
98
Which smartphone is best for me? / Re: Which Cell Phone Should you Get?
« Last post by shilpa111 on December 09, 2017, 04:50:36 PM »
hi
All mobile  are nice,i recently red mi  note4 is good.
99
iOS / iOS 10 Stock Wallpapers Full HD Download
« Last post by TelVerde on August 19, 2017, 03:55:04 PM »
iOS 10 wallpaper iPhone7



iOS 10 wallpaper iPad



100
Android / Android - Connecting to MYSQL (Get Method)
« Last post by TelVerde on August 19, 2017, 03:35:47 PM »
Connecting Via Get Method
There are two ways to connect to MYSQL via PHP page. The first one is called Get method. We will use HttpGet and HttpClient class to connect.
Code: [Select]
URL url =new URL(link);HttpClient client =newDefaultHttpClient();HttpGet request =newHttpGet();

request.setURI(new URI(link));
[/SIZE]

...call execute method of HttpClient class and receive it in a HttpResponse object.
Code: [Select]
HttpResponse response = client.execute(request);

BufferedReader in = new BufferedReader
(new InputStreamReader(response.getEntity().getContent()));
[/SIZE]

Connecting Via Post Method

Code: [Select]
URL url = new URL(link);

String data  = URLEncoder.encode("username", "UTF-8")
+ "=" + URLEncoder.encode(username, "UTF-8");
data += "&" + URLEncoder.encode("password", "UTF-8")
+ "=" + URLEncoder.encode(password, "UTF-8");
URLConnection conn = url.openConnection();
[/SIZE]

Code: [Select]
OutputStreamWriter wr = new OutputStreamWriter(conn.getOutputStream());

wr.write( data );
BufferedReader reader = new BufferedReader(new
InputStreamReader(conn.getInputStream()));    

The php page has been given below which takes parameters by post method.[/SIZE]

Code: [Select]

   $con=mysqli_connect("mysql10.000webhost.com","username","password","db_name");

   if (mysqli_connect_errno($con)) {
      echo "Failed to connect to MySQL: " . mysqli_connect_error();
   }
   
   $username = $_POST['username'];
   $password = $_POST['password'];
   $result = mysqli_query($con,"SELECT Role FROM table1 where
   Username='$username' and Password='$password'");
   $row = mysqli_fetch_array($result);
   $data = $row[0];

   if($data){
      echo $data;
   }
   
   mysqli_close($con);
?>
[/SIZE]


More info and complete Android - PHP/MYSQL tutorial



--
Ref: www.tutorialspoint.com/android/android_php_mysql.htm
Pages: 1 ... 8 9 [10]