I am getting the error:
Object of class mysqli_result could not be converted to string
This is my code:
$result = mys
The query() function returns an object, you'll want fetch a record from what's returned from that function. Look at the examples on this page to learn how to print data from mysql
query()