If I have the following function:
function obtener_id(){
$conn = db_connect();
$query = "SELECT max(idproblema) FROM problemas";
$result = @$conn->query($query);
return $result;
}
What I want to do is that what I return that query is the number marked in the image and being an INT ... for example that $ result is only a 1, this query is done to know the last id of the table.
I want it to turn out to be a number, I do not want it that way: