Index: openacs-4/packages/acs-core-docs/www/xml/kernel/db-api.xml =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/xml/kernel/db-api.xml,v diff -u -r1.5 -r1.6 --- openacs-4/packages/acs-core-docs/www/xml/kernel/db-api.xml 30 Jul 2002 19:18:45 -0000 1.5 +++ openacs-4/packages/acs-core-docs/www/xml/kernel/db-api.xml 6 Aug 2002 17:21:49 -0000 1.6 @@ -973,13 +973,23 @@ var_name:1, var_name:2, etc, setting var_name:rowcount to the total number of rows, and setting var_name:columns to a - list of column names. Each row also has a column, rownum, automatically + list of column names. + + + + Each row also has a column, rownum, automatically added and set to the row number, starting with 1. Note that this will override any column in the SQL statement named 'rownum', also if you're using the Oracle rownum pseudo-column. - + + If the -local is passed, the variables defined + by db_multirow will be set locally (useful if you're compiling dynamic templates + in a function or similar situations). + + + You may supply a code block, which will be executed for each row in the loop. This is very useful if you need to make computations that are better done in Tcl than in SQL, for example using ns_urlencode