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? Quote Link to comment https://forums.phpfreaks.com/topic/286917-when-to-use-mysqlistmt_init/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.