Tema: Tpl y php
Ver Mensaje Individual
  #24 (permalink)  
Antiguo 11/12/2012, 09:03
XD2XD2
 
Fecha de Ingreso: diciembre-2012
Mensajes: 223
Antigüedad: 11 años, 5 meses
Puntos: 2
Respuesta: Tpl y php

Correcto, y en el test.tpl tengo puesto
Código PHP:
Ver original
  1. <?php
  2. include("../config/config.php");
  3. ?>
  4. <?php
  5. $web = mysqli_query($conectar, "SELECT Codigo FROM Diseno WHERE Dominio = 'Mi dominio'");
  6. if($web1 = mysqli_fetch_array($web)){
  7. echo template($web1['Codigo']);
  8. }
  9. ?>

Me da este error
Código PHP:
Ver original
  1. Warning: Missing argument 2 for template(), called in /home/xdxdx157/public_html/cms/diseno/a.php(9) : eval()'d code on line 7 and defined in /home/xdxdx157/public_html/cms/diseno/a.php on line 2
  2.  
  3. Warning: file_get_contents(ferger fgr rg ewf ewr ewr no) [function.file-get-contents]: failed to open stream: No such file or directory in /home/xdxdx157/public_html/cms/diseno/a.php on line 5
  4.  
  5. Warning: Invalid argument supplied for foreach() in /home/xdxdx157/public_html/cms/diseno/a.php on line 14