$mysql = new mysqli('localhost', 'root', '', 'altunoren');
	$mysql->set_charset("utf8");
	if($mysql->connect_errno > 0){
		die('Bağlantı hatası [' . $mysql->connect_error . ']');
	}
2. satırdaki
 $mysql->set_charset("utf8"); bu kod tüm kayıtlarınızı utf8 olarak hem yazar hem okur... 
  
