TelPlaza.net

Recent Posts

Pages: 1 ... 7 8 [9] 10
81
General News & Discussion / Re: Hitler gets angry about iPhone 4S
« Last post by Certvalue on September 07, 2017, 08:56:32 PM »
Super video, very funny while watching.
82
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



83
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
84
10+ for design (Full-Metal Unibody Design) and Nexus 6P features more powerful Snapdragon 810 octa-core processor with 3GB of RAM.
[MEDIA=youtube]-ngRVUKJ58M[/MEDIA]

Huawei Nexus 6P Features

ROMs, Themes & Apps
85
Android Games / Re: Preview: SimCity BuildIt (by Electronic Arts) - iOS / Android
« Last post by telplaza07 on August 19, 2017, 09:21:49 AM »
I'm lvl 43 :)
86
Android Games / Re: Preview: SimCity BuildIt (by Electronic Arts) - iOS / Android
« Last post by TelVerde on August 19, 2017, 09:18:12 AM »
I'm level 61. This is the Best MMO Building game Ever since 2014.
87
Android Games / Lineage 2 Revolution - your free MMORPG game for mobile!
« Last post by TelVerde on August 19, 2017, 09:12:05 AM »
A Real World at your Fingertips: The Largest Persistant Open World on Mobile
Play in synchronous real-time with players from across the globe, and experience the realm of Lineage 2 Revolution from anywhere, anytime.


Video preview
[MEDIA=youtube]LAKfQBNzjbI[/MEDIA]
Product Information & Usage Details
- Recommended Specifications: CPU Quad core 2.3GHz, Ram 2GB
- Minimum Specifications: CPU Quad core 1.2GHz, Ram 1GB


More info about Lineage 2 Revolution
https://www.cellphonesguide.net/?sd=app&Id_app=94

88
Ask for user manuals / [Important!] Read before posting.
« Last post by telplaza07 on August 19, 2017, 08:45:51 AM »
Language! Do not forget that the native language in this section is English.
Shares! In case you want to share PDF phone manuals. Phone user manuals ONLY!
89
iPhone Apps / Re: Best iPhone and iPad apps 2016
« Last post by Matt Hogan on August 18, 2017, 12:27:11 PM »
These are the best apps that are trending in the app store.
90
General News & Discussion / Re: Hitler gets angry about iPhone 4S
« Last post by Market Goal on August 17, 2017, 08:57:09 AM »
Very funny video. Grand salute to the makers of this video. Love this a lot
Pages: 1 ... 7 8 [9] 10