Re: fast template help

From: Date: Sat, 05 Oct 2002 00:56:27 +0000
Subject: Re: fast template help
References: 1  Groups: php.general.es 
Request: Send a blank email to general-es+get-27684@lists.php.net to get a copy of this message
Hola, mmira.. yo no lo usé nunca pero conozco gente que si... y por lo que vi que habian hecho ponian entre comillas los datos... $tpl->assign("NOMBRE",$nombre); Algo asi... Espero que sea eso... nos vemos.. On Vie 04 Oct 2002 17:35, Alan Lavintman wrote: este es mi php include "class.FastTemplate.php"; $con=mysql_connect("localhost","","") or die ("no se pudo conectar"); $sel=mysql_select_db("ascii",$con); $tpl=new FastTemplate("."); $templates["main"]="main.tpl#PAGE"; $templates["row"]="main.tpl#LINEROW"; $tpl->define($templates); $sql="select * from datos"; $query=mysql_query($sql); while(list(,$nombre,$apellido,$telefono)=mysql_fetch_row($query)) { $tpl->assign(NOMBRE,$nombre); $tpl->assign(APELLIDO,$apellido); $tpl->assign(TELEFONO,$telefono); $tpl->parse(ROW,"row"); } $tpl->parse(MAIN,"main"); $tpl->FastPrint(MAIN); ?> este es mi template main.tpl <!--START TEMPLATE PAGE--> <html> <head><title></title> </head> <body> <!--START TEMPLATE LINEROW--> <tr> <td>{NOMBRE}</td> <td>{APELLIDO}</td> <td>{TELEFONO}</td> </tr> <!--END TEMPLATE LINEROW--> </body> </html> <!-- END TEMPLATE PAGE --> el error es el siguiente: ERROR: Nothing parsed, nothing printed alguna idea?? la base de datos esta llena. y nada se imprime. desde ya muchas gracias -- Leonardo Land NK Studios S.R.L. Crespo 2417 Portero 3 Oficina "c" ICQ: 32576212 Santa Fe - Santa Fe Argentina 54-342-4530322 www.nkstudios.net www.nkhosting.com

« previous php.general.es (#27684) next »