-8

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.

Litisqe Kumar
  • 2,512
  • 4
  • 26
  • 40
Daniel Bowen
  • 51
  • 2
  • 9

1 Answers1

1

look at this link, it contains all the information that you need, but you need to apply it yourself, we can help once you try. Everyone starts at some point. Best of luck! http://www.tutorialspoint.com/sql/sql-string-functions.htm