Here is my PHP code:
$query = $sdb->prepare("SELECT * FROM `t_comments` WHERE `a_link` = ?");
$query->bindValue(1, $_GET["link"]);
$query->execute();
and here is my JSON request in Android:
JSONObject json = jParser.makeHttpRequest("http://serverip/json/getcomments.php?link=" + index, "GET", params);
Actually, this code works if I remove link request in Activity.
Also, if I replace $_GET with ID in PHP, but index will change on each request so.
SOLVED:
i needed to use Params list to add GET parameter inside
simply with params.add(new BasicNameValuePair("STRING NAME", SOMETHING TO STORE));