I want to fetch data from my database in the function below but it's not working and I don't understand why, can anybody help?

```
$sql1 = "SELECT * FROM users WHERE uname='Honey' AND pass='Honey'";
$count = mysqli_num_rows( mysqli_query($con, $sql1) );
if ($count > 0 ) {
    $query = mysqli_query($con, $sql1);
    while ($rss = mysqli_fetch_array($query, MYSQLI_ASSOC)) { 
        function user_names() {
            $master = .$rss["uname"].;
            $api = "".$master."";
            if (empty($api)) return "Missing";
            $data = "api=".$api."&mask";
            $ch = curl_init();
            curl_close($ch);
            return $content;
        }
    }
}

```