Hello,
You need to write a PHP script and upload it to your server where the database resides.
The PHP script queries the database and returns a given result. The format of the result
is your choice, preferrably CSV, HTML or XML.
Use the HTTP library to address the URL of the PHP script on the server with query parameters, such as
http://www.myserver.com/query.php?table=products&where=material&type=iron
The PHP script should then generate an sql query, something like
SELECT from " . $table . " WHERE " . $material . " = iron"
The PHP script will then return all items that match the query in either of CSV, HTML or XML.
This data will then be received by the HTTP library in return to the URL request above
and need to be parsed appropriately to obtain the desired display for the Android.
Sorry, I can offer a mere rough guide, since such a project depends on too many individual details,
which only you know.
If in doubt about how to write in PHP/Sql, please try and get help from your friends or colleagues in your vicinity.
PHP/Sql issue lie beyond the scope of B4A support.