fast template help

From: Date: Fri, 04 Oct 2002 20:35:18 +0000
Subject: fast template help
Groups: php.general.es 
Request: Send a blank email to general-es+get-27683@lists.php.net to get a copy of this message
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

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