paddy_fields Posted March 12, 2014 Share Posted March 12, 2014 I make a prepared statement in the manner below; $stmt = $db->prepare("SELECT * FROM table WHERE id = ?"); $stmt->bind_param('i',$id); $stmt->execute(); $result = $stmt->fetch_assoc(); $stmt->close(); But I've seen certain scripts initialising the statement first using stmt_init In what scenario would this be necessary/benifitial to do so? Link to comment https://forums.phpfreaks.com/topic/286917-when-to-use-mysqlistmt_init/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.