How to get a string returned from an sql query. MY code i have is:
$to = mysqli_query($con,"SELECT email FROM register WHERE ID = '$i'");
This returns an object which im assuming needs to be converted (something I'm also not sure how to do (PHP noob!)). I need to know how to get a sting from the database in the first place. Also I only need one field of the row.