Code:
$result = mysqli_query($con, "SELECT classtype FROM learn_users WHERE username='abcde'");
echo "my result <a href='data/$result.php'>My account</a>";
I am getting this error when I run the above code:
Object of class mysqli_result could not be converted to string
How can I solve this?