Try:
$GetRecord = new WA_MySQLi_RS("GetRecord ", $conn_i, 0);
$ GetRecord ->setQuery("SELECT id FROM table WHERE value RLIKE ?");
$ GetRecord ->bindParam("s", "" . (isset($_POST['val']) ? "[".$_POST['val']."]" : "") . "", "-1"); //colname
$ GetRecord ->execute();