Ver Mensaje Individual
  #2 (permalink)  
Antiguo 07/02/2018, 00:34
rbczgz
 
Fecha de Ingreso: noviembre-2003
Ubicación: Zaragoza, España
Mensajes: 1.257
Antigüedad: 20 años, 5 meses
Puntos: 154
Respuesta: Importar trigget desde por Query

Hola TrinityCore,

No sé si lo habrás hecho ya, pero yo empezaría depurando, tal que así:

Código PHP:
Ver original
  1. $FileDir = $_SERVER["DOCUMENT_ROOT"]."/SQL/Trigger.sql";
  2. $FileContent = file_get_contents($FileDir);
  3. echo $FileContent;
  4. $insert = $conexion -> query($FileContent);
  5. $conexion -> close();

Así vas viendo lo que va sucediendo y puedes averiguar dónde está el fallo si lo hay.

Espero que te sirva...