<?php $db = "db_name"; $user = "username"; $pass = "pass"; $serverlink = mysqli_connect("localhost", $user, $pass, $db) or die (mysqli_error($serverlink)); mysqli_query($serverlink, 'SET NAMES UTF8') or die (mysqli_error($serverlink)); ?>
info at phpclasses dot org