By defining the following:
$value = $_POST['value'];
this_query = $database->prepare("SELECT * FROM table WHERE field = ?");
$stt = bind_param("s", $value);
$stt->execute();
how do I retrieve the value from this_query?
By using standard statements I could use:
$this_query = "SELECT * FROM table WHERE value ='$value'";
$result = mysqli_query($database, $this_query);
But, since this isn't secure, as the user could input ANYTHING into $_POST['value']; , I wanted to use a prepared statement, but, since I never been using them, now I'm stuck here, cause I don't know how to get the value from the query.