class users{
function CurrUsrName($data){
$mysqli = mysqli_query(con(), "SELECT name FROM user WHERE id = '".safe($data)."' ");
$value = $mysqli->fetch_array();
return safe($value['name']);
mysqli_free_result($mysqli);
mysqli_close(con());
}
}
//o kvietiesi <span style="border-bottom: 1px dotted black;">PHP</span> faile taip:
$usr = new users;
$usrId = $usr->CurrUsrName($UsrId);