wright67uk Posted March 16, 2013 Share Posted March 16, 2013 I saw this code and wondered what bind result did and what purpose it serves? $color = "purple"; $stmt = $mysqli->stmt_init(); if ($stmt->prepare("SELECT FirstName, LastName FROM Friends WHERE FavoriteColor = ?")) { $stmt->bind_param("s" $color); $stmt->execute(); $stmt->bind_result($firstname, $lastname); Quote Link to comment Share on other sites More sharing options...
Jessica Posted March 16, 2013 Share Posted March 16, 2013 That is in fact what the manual is for. Quote Link to comment Share on other sites More sharing options...
wright67uk Posted March 16, 2013 Author Share Posted March 16, 2013 For binding results? Quote Link to comment Share on other sites More sharing options...
Jessica Posted March 16, 2013 Share Posted March 16, 2013 For learning what a function does... Quote Link to comment 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.