Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

como se hace?

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: Spanish
View previous topic :: View next topic  
Author Message
hleyva
Smarty n00b


Joined: 27 Nov 2004
Posts: 2

PostPosted: Sat Nov 27, 2004 7:37 pm    Post subject: como se hace? Reply with quote

Estoy aprendiendo a trabajar con Smarty pero hay cosa basicas que aun no se como hacerlas por ejemplo en PHP:

// cuando leo de una base de datos el campo nombre, muestro todos los que existen de esta forma.
<? echo $rs->Fields('nombre'); ?>

Como se hace esto utilizando Smarty?


Gracias por adelantado.
Back to top
View user's profile Send private message
hleyva
Smarty n00b


Joined: 27 Nov 2004
Posts: 2

PostPosted: Wed Dec 01, 2004 12:36 am    Post subject: respuesta a como se hace Reply with quote

Esta es una via de resolver lo que habia preguntado sobre mostrar datos de un recordset.

$i =0;
if (!$rs_personal)
print $connect->ErrorMsg();
else
while (!$rs_personal->EOF) {
$array[$i] = $rs_personal->fields[0].''.$rs_personal->fields[1];
$i++;
$rs_personal->MoveNext();
}
$item->assign('nombre', $array);
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: Spanish All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP