$baglanti = mysqli_connect("localhost","kullanıcı","şifre","veritabanı-adı");
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
$baglanti->set_charset("utf8");
$sorgu = $baglanti->query("Select * From menu");
while($sonuc = $sorgu->fetch_assoc()) {
$id=$sonuc["id"];
$ad=$sonuc["ad"];
echo ''.$ad.'
';
}