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); 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. 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? 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... Link to comment https://forums.phpfreaks.com/topic/275739-mysqli-and-binding-results/#findComment-1419027 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.