$conn = mysql_connect('localhost', 'user', 'pass', true) or die('Σύνδεση αδύνατη: ' . mysql_error());mysql_query("SET NAMES 'utf8'", $conn);mysql_select_db('db',$conn); $query = mysql_query($sql,$conn_cat) or die(mysql_error());
I took a look on this post https://forum.elxis.org/index.php?topic=3025.0.