I have this function:
function dulide($uid) {
    global $mysqli, $sm;
    $city = $mysqli->query("SELECT city FROM users WHERE id = '" . $sm['user']['id'] . "'");
    $haha = $city->fetch_assoc();
    $citye = $haha['city'];
    $sql = "SELECT id,age,name,email,city,fixed FROM users WHERE fixed=1 AND city = '" . $citye . "' LIMIT 5";
    $query = $mysqli->query($sql);
    if ($query->num_rows > 0) {
        while ($user = $query->fetch_object()) {
            $return .= '<tr><td> ' . $user->name . ' </td></tr><tr><td>';
            $uid = $user->id;
            $photos = $mysqli->query("SELECT photo FROM users_photos WHERE approved = 1 and profile = 1 and u_id = '" . $uid . "' order by id desc LIMIT 1");
            if ($photos->num_rows > 0) {
                while ($up = $photos->fetch_object()) {
                    $return .= '<img src="' . $up->photo . '" alt="Smiley face" height="50" width="50">';
                }
            }
            $return .= ' </td></tr> ';
        }
    }
    return $return;
}
When I try to call the function with
<?=dulide($uid); ?> 
Nothing happens. Do anyone have a solution for this?
Huge amount of charma and blessings is given out! :)
Thanks on behalf
 
    