ricmetal Posted September 25, 2012 Share Posted September 25, 2012 (edited) 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(); Edited September 25, 2012 by ricmetal Quote Link to comment Share on other sites More sharing options...
PFMaBiSmAd Posted September 25, 2012 Share Posted September 25, 2012 After you bind the result to the variable, you must execute $stmt->fetch(); to actually fetch the row of data from the result set. Quote Link to comment Share on other sites More sharing options...
ricmetal Posted September 25, 2012 Author Share Posted September 25, 2012 to many awake hours you know? thanks man 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.