Jump to content

Query Returning Empty


ricmetal

Recommended Posts

hi y'all,

i am getting empty strings when making a query.

what can i do to troubleshoot this problem?

 

this is the code

if($stmt = $mysqli->prepare("SELECT user_email FROM users WHERE id = ? ")) {
$stmt->bind_param('i', $id);
$stmt->execute();
$stmt->bind_result($isActivated);
echo $isActivated; // outputs empty
die();

Link to comment
https://forums.phpfreaks.com/topic/268768-query-returning-empty/
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.