Ver Mensaje Individual
  #6 (permalink)  
Antiguo 24/08/2014, 16:30
oscurogt
 
Fecha de Ingreso: agosto-2013
Ubicación: Guatemala
Mensajes: 137
Antigüedad: 11 años, 5 meses
Puntos: 4
Respuesta: consulta PHP - MYSQL -

tu conexion no está hecha en mysqli debería ser así
Código PHP:
Ver original
  1. <?php
  2. ini_set('default_charset', 'utf-8');
  3. $server = 'localhost';
  4. $user = 'root';
  5. $pass = 'root';
  6. $db = 'base_de_datos';
  7. $conexion = new MySQLi($server,$user,$pass,$db);
  8.     printf("Falló la conexión: %s\n", mysqli_connect_error());
  9.     exit();
  10. }
  11.  
  12. if (!mysqli_set_charset($conexion, "utf8")) {
  13.     printf("Error loading character set utf8: %s\n", mysqli_error($conexion));
  14. } else {
  15.    mysqli_character_set_name($conexion);
  16. }
  17. ?>