i am trying to echo two values from database and want to echo that value in separate places in html but when i call that function in html it gives me both value in the same place but i want that value in different places how to do that help please.
HTML
<div id="container">
<div id="header">
<a href="home.php?q=logout">LOGOUT</a>
</div>
<div id="main-body">
<br/><br/><br/><br/>
<h1>
Hello <?php $user->get_fullname($uid); ?>
<?php echo $uid; ?>
</h1>
</div>
<div id="footer"></div>
</div>
php function in a class name User
public function get_fullname($uid){
$sql3="SELECT fullname,uemail FROM users WHERE uid = $uid";
$result = mysqli_query($this->db,$sql3);
$user_data = mysqli_fetch_array($result);
echo $user_data['fullname'];
echo $user_data['uemail'];
}