I have the following code to retrieve information from a database. It connect connects to the database, but when I try to display the information I don't see anything. I only get the dash lines. I think the problem is in the while loop, I just can not see where my mistake is. Can anyone help??
 $connection = mysql_connect("127.0.0.1","root","xxxxxxxx");
        if (!$connection)
        {
        printf("Can't connect to MySQL Server.", mysqli_connect_error());
        }
    mysql_select_db('xxxxxx') or die ('Could not select database');
        echo 'You have been connected succesfully to your database';
        $query = "SELECT *FROM testing";
        $result = mysql_query($query) or die("Query fail:".mysql_error());
        while ($row = mysql_fetch_array($result));
        {
            echo $row['age']."--".$row['sex']."--".$row['id']."--".$row['country']."--".$row['sport']." ";
        }
        ?>
 
     
     
     
    