On 28 Sep 2002 at 15:48, Matt Giddings wrote:
Hello,
Be for warned that I am new to smarty and for some reason I'm
finding it very difficult to learn. ??? Anyway, my question is how do
I access an array of associative arrays via the {section} statement?
Heres the code:
Matt,
I
-Original Message-
From: Peter J. Schoenster [mailto:[EMAIL PROTECTED]]
Sent: Saturday, September 28, 2002 5:25 PM
To: [EMAIL PROTECTED]
Cc: Matt Giddings
Subject: Re: [PHP] Smarty template question
On 28 Sep 2002 at 15:48, Matt Giddings wrote:
Hello,
Be for warned
PROTECTED]
Cc: Matt Giddings
Subject: Re: [PHP] Smarty template question
On 28 Sep 2002 at 15:48, Matt Giddings wrote:
Hello,
Be for warned that I am new to smarty and for some reason I'm
finding it very difficult to learn. ??? Anyway, my question is how
do
I access an array
Was written
while( $row = $result-fetchRow( DB_FETCHMODE_ASSOC ) ) {
$rowdata[$i] = $row;
$i++;
I don't think you need the $i.
I need the $i because I'm assigning the every row from the result into
an array.
http://www.php.net/manual/en/language.types.array.php#language.types.arr
ay.syntax
This is done by assigning values to the array while specifying the
key
in brackets. You can also omit the key, add an empty pair of
brackets
([]) to the variable-name in that case.
$arr[key] = value;
5 matches
Mail list logo