Skip to content

Instantly share code, notes, and snippets.

@fernandopetry
Last active August 29, 2015 13:55
Show Gist options
  • Save fernandopetry/8735861 to your computer and use it in GitHub Desktop.
Save fernandopetry/8735861 to your computer and use it in GitHub Desktop.
<?php
mysql_connect($servidor, $usuario, $senha) or die(mysql_error());
mysql_select_db($banco) or die(mysql_error());
mysql_query("SET NAMES 'utf8'");
mysql_query('SET character_set_connection=utf8');
mysql_query('SET character_set_client=utf8');
mysql_query('SET character_set_results=utf8');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment