Pick random row from mysql : im trying to echo my mysql query, but it doesnt seem to work. Here is my code:

<!-- begin snippet: js hide: false console: true babel: false -->

<!-- language: lang-html -->

    <button onlick="myFunction()">Click me</button>
<?php
    		function myFunction() {
    		   $con = mysqli_connect("mysql.hostinger.no", "u452849516_altge", "absha001", "u452849516_altge"); 
              $query = "SELECT * FROM altbruker ORDER BY RAND() LIMIT 1";
               mysqli_query($con, $query);
               $results = mysqli_query($query);
    			var_dump($results); 
    		}
?>

<!-- end snippet -->

