Prepared Statement not returning anything
问题 Please forgive me for the possibility of the stupidity of this question, but I've just started using prepared statements. I know this particular query works, as I tested it with unprepared, procedural methods. Here it is: $name = 'introduction'; $mysqli = new mysqli('localhost', 'user', 'pass', 'db') or die('There was a problem connecting to the database.'); $stmt = $mysqli->prepare("SELECT name, content FROM sections WHERE name = ?"); $stmt->bind_param('s', $name); $stmt->execute(); $stmt-