I am trying to output the variables that I get from the database in my query but nothing is being returned. Using MYSQLi prepared statements.
Please see code below:
you forgetting the line to fetch the result. fetch() .
fetch()
try that:
$stmt->bind_result($first_name, $last_name); $stmt->fetch(); // ----- > you forget that line to fetch results. $stmt->close();