Ver Mensaje Individual
  #2 (permalink)  
Antiguo 06/04/2018, 08:57
Avatar de xfxstudios
xfxstudios
 
Fecha de Ingreso: junio-2015
Ubicación: Valencia - Venezuela
Mensajes: 2.448
Antigüedad: 8 años, 10 meses
Puntos: 263
Respuesta: Pasar función de PHP 5.3.3 a PHP 7.1.1

Prueba así:

Código PHP:
Ver original
  1. function __construct($host = DB_HOST,$user = DB_USER, $pass = DB_PASS, $dbname = DB_NAME ){
  2.  
  3.     $this->con = new mysqli($host, $user, $pass, $dbname);
  4.         if ($this->con->connect_errno) {
  5.             echo "Fallo al conectar a MySQL: (" . $this->con->connect_errno . ") " . $this->con->connect_error;
  6.         }
  7.  
  8.     $this->con->set_charset("utf8");
  9. }
__________________
[email protected]
HITCEL