Вот мой код:
<?php
$link = mysqli_connect('localhost', "djunjich", '011168', 'dbip');
if ( !$link ) die("Error");
mysqli_query($link, "SET NAMES utf8");
$query = "select * from goroh";
$result = mysqli_query($link, $query);
if ( !$result ) echo "Произошла ошибка: ".mysqli_error();
//else echo "Данные получены";
print '<table border="5" align="center" bgcolor="EEE8AA">';
//print '<table>'
//<link rel="stylesheet" href="css/style.css">
while($row = $result->fetch_object()) {
print '<tr>';
print '<td>'.$row->IP.'</td>';
print '<td>'.$row->Hostname.'</td>';
print '<td>'.$row->Location.'</td>';
print '<td>'.$row->MAC_Address.'</td>';
print '<td>'.$row->Notes.'</td>';
print '</tr>';
}
print '</table>';
// Frees the memory associated with a result
$result->free();
?>