About this question
I am executing the below code.
$result = mysqli_query($con, "SELECT classtype FROM learn_users WHERE username='abcde'");
echo "my result";
I am getting the following error:
Object of class mysqli_result could not be converted to string