I have done everything as was outlined on this site: https://phpdelusions.net/mysqli_examples/prepared_select
Here's my code:
$conn = new mysqli($servername, $username, $password, $dbname);
$sql = "SELECT east FROM postcodes WHERE postcode=?"; // SQL with parameters
$stmt = $conn->prepare($sql);
$stmt->bind_param("s", $A);
$A = $_REQUEST['postcode'];
$stmt->execute();
$result = $stmt->get_result(); // get the mysqli result
$r1 = $result->fetch_assoc(); // fetch data
echo implode ($r1);
If I don't use "implode" it gives me "Notice: Array to string conversion"
What do I do? How can I assign result to $r1 variable and then use it without implode?