class usersView
{
private function info()
{
$sqlInfo = "SELECT * FROM `RegUsers`";
$mySql = new mysqli('localhost', 'root', '', 'GuestBook');
mysqli_query($mySql, "SET NAMES 'utf8' COLLATE 'utf8_general_ci'");
mysqli_query($mySql, "SET CHARACTER SET 'utf8'");
$resultSql = mysqli_query($mySql, $sqlInfo);
return $resultSql;
}
public function usersView()
{
$resultSql = $this->info();
if ($resultSql) {
while ($row = mysqli_fetch_assoc($resultSql)) {
echo 'Логин ' . $row['Log'] . '<br>';
echo 'Пароль ' . $row['Pass'] . '<br>';
echo 'Маил ' . $row['mail'] . '<br>';
echo 'Город ' . $row['town'] . '<br>';
echo 'Пол ' . $row['pol'] . '<br>';
echo 'Возраст ' . $row['years'] . '<br>';
echo 'Аватарка ' . $row['ProfPic'] . '<br>';
echo 'Статус ' . $row['status'] . '<br>';
echo '<hr>';
};exit();
}
}
}
<div class="dishes-item js-dishes hidden-xs col-sm-12 col-md-6 col-lg-4">
<img class="imgBanner" usemap="#bannerIMG" src="<c:url value="/static/sv/img/dishes/MobApp.png"/>">
<map name="bannerIMG">
<area href="https://itunes.apple.com/ru/app/%D1%81%D1%83%D1%88%D0%B8%D0%B2%D0%B5%D1%81%D0%BB%D0%B0/id982843002?mt=8"
coords="288, 157, 358, 180" />
<area href="https://play.google.com/store/apps/details?id=com.ub.sushivesla.app"
coords="378, 157, 458, 190" />
</map>
</div>