The error is
Catchable fatal error: Object of class mysqli_result could not be converted to string in C:\xampp\htdocs\posdef\index.php on line 18
Evidently, I perceive that the query returns an object resource, but how to convert it into a string. I am caught up in that problem. How to convert the object resource into string and store it in a variable?
This is the piece of code where I am trying to recover the data stored -
$con = mysqli_connect("localhost", "root", "");
mysqli_select_db($con, "new");
$mylogo = mysqli_query($con, "SELECT first FROM hello WHERE sno=6");