 | 2.1 | Accessing database records |
(Next)
|
| Information from databases may be accessed as text or records. Data may only be included as text, however. Records fields are accessed using a colon after the record reference. The number that follows represents the number of the field that the text will be extracted from, or, if text, the name of the field that the text will be extracted from. To learn more about naming fields, see 1.2, "Making your database Build file accessible" . Example: repeat i "database.csv" include "item.htm" tag "content" i:1 tag "more content" i:"name field" end repeat In the above example, the variable i represents the record. The reference to i:1 represents the first field of the record referenced by i. The reference to i:"name field" represents the field named "name field" of the record referenced by i. |
© Copyright 1997-1999 Dataczar Technologies. All rights reserved. |