[Solved] Object of class mysqli_result could not be converted to int – Can’t find my Error [duplicate] September 30, 2022 by Kirat mysqli_query does not return your number directly. It returns a mysqli_result as you can see here. To get the row you have parsed, you should fetch it first: $row = mysqli_fetch_assoc($result) A lot of information on using mysqli can be found here. 6 solved Object of class mysqli_result could not be converted to int – Can’t find my Error [duplicate]