get id and image from mysql database and use it in android apps
<p>i create a table in <code>Mysql</code> database : Person(id int, Image blob).</p>

<p>i create a <code>Php</code> script which allows me to display the image in the browser, i took the URL of this <code>php</code> script and use it in android apps to show the image in an <code>Imageview</code>. but now i want also to display the id of the image in a <code>TextView</code>, so how can i make a script that shows the image and the id at the same time, and how can i get the data into android apps.</p>

<p>this is how i get just the image from my <code>php</code> script: </p>

<pre><code> @Override
    protected ArrayList&lt;Bitmap&gt; doInBackground(String... params) {
        String phpurl = "http://192.168.1.11/save/load_image_from_db.php?id=3";
        URL url;
        Bitmap image = null;
            try {
                url = new URL(phpurl);
                HttpURLConnection connection = (HttpURLConnection) url.openConnection();
                image = BitmapFactory.decodeStream(connection.getInputStream());
            } catch (MalformedURLException e) {
                e.printStackTrace();
            } catch (IOException e) {
                e.printStackTrace();
            }
        return image;
    }
</code></pre>