Jump to content

mysqli and binding results


wright67uk

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.