ciao,
ho inserito le istr. che hai scritto ma il risultato non cambia. la prima

$result = $mysqli->query;

restituisce

Notice: Undefined property: mysqli::$query in C:\wamp\www\Fetch.php on line 48

la seconda

while($row = mysql_fetch_array($result));

Warning: mysql_fetch_array() expects parameter 1 to be resource, null given in C:\wamp\www\Fetch.php on line 50