Ive followed a bunch of different examples regarding using a SELECT in a prepared statement, but nothing is returned. EDIT I have changed my code a bit to look lik
Not at all a fan of "bind_result" in mysqli beyond the simplest one-row-expected queries.
Stuffing a whole row into a single array item is better done with:
$stmt->execute();
$result = $stmt->get_result();
while ($data = $result->fetch_assoc())
{
$retvar[] = $data;
}
$stmt->close();
or
while ($data = $result->fetch_row())
if you don't want/need the field names.