Re: Arrays and Sections

From: Date: Mon, 31 Dec 2001 14:35:24 +0000
Subject: Re: Arrays and Sections
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-2455@lists.php.net to get a copy of this message
Thanks for the suggestion, but it didn't work either. this code: {section name=i loop=$data} {$i.index} - <b>{$i.status_name}</b><br> {sectionelse} there are no values to loop through {/section} produces this result: - - - I don't know if it matters but here's my environment: PHP 4.1.0 Apache 1.3.22 MySQL 3.23.46 Windows 98 SE If you want I can attach all the files needed to run this code. thanks in advance. Chris *********** REPLY SEPARATOR *********** On 12/31/01 at 10:25 AM Pablo Veliz wrote: >On Sun, 30 Dec 2001 10:10:42 -0800 >"Chris Hubbard" <chris@wildcharacters.com> wrote: > >> All, >> OK, I'm stuck. >> I've got a simple table >> status // table name >> status_id INT(10) auto_increment // table index >> status_name varchar (50) >> >> And I want to display the values in the table to the browser. The >values currently are: >> status_id status_name >> 1 Open >> 2 Closed >> 3 Assigned >> > > Attempt 4 > {section name=i loop=$data} > {$i.index} - <b>{$i.status_name}</b><br> > {sectionelse} > there are no values to loop through > {/section} > >--- >You are currently subscribed to smarty as: chris@wildcharacters.com >To unsubscribe send a blank email to $subst('Email.Unsub') >Visit Smarty's homepage at >http://www.phpinsider.com/php/code/Smarty/

« previous php.smarty.general (#2455) next »