This is conn.php
<?php
ob_start();
session_start();
?>
<?php
$username="root";
$password="";
$sunucu="localhost";
$database="ubys1";
$baglan=mysqli_connect($sunucu,$username,$password);
mysqli_query($baglan,"SET NAMES UTF8");
if($baglan)
{
mysqli_close($baglan);
exit();
}
$db=mysqli_select_db($database);
if($db) {
echo "db error:".mysqli_error(); echo "<br>";
exit();
}
This is the part for connect db and html codes. After PHP codes, its all HTML.
<?php
include 'admin/conn/conn.php';
$deneme = "SELECT * FROM deneme";
$ayarsor=mysqli_query($baglan,$deneme);
$ayarcek=mysqli_fetch_array($ayarsor);
?>
its giving only blank page, if i write echo on conn.php, it shows the words that i wrote in echo. I'm trying to show the HTML codes but connect the database too.