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 https://forums.phpfreaks.com/topic/275739-mysqli-and-binding-results/ 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 https://forums.phpfreaks.com/topic/275739-mysqli-and-binding-results/#findComment-1419009 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 https://forums.phpfreaks.com/topic/275739-mysqli-and-binding-results/#findComment-1419025 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 https://forums.phpfreaks.com/topic/275739-mysqli-and-binding-results/#findComment-1419027 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.