user warning: Table './zuggsoftdb/accesslog' is marked as crashed and should be repaired query: INSERT INTO accesslog (title, path, url, hostname, uid, sid, timer, timestamp) values('', 'node/315', '', '38.107.179.241', 0, 'p9hsf3bgjdo5ftg4qbk7n6hpq6', 4715, 1337597048) in /home/tessh/public_html/modules/statistics/statistics.module on line 64.

Documentation

db

Syntax: %db(rec,key)

Returns the value of the key property of the given record variable. A shortcut for this function is @rec.key which also returns the key value in the record variable rec. To retrieve a field from the current database record (%rec), you can either use %db(%rec,key), or %rec.key, or the shortcut &key where & is the current Database Variable set in the Special Characters.

You can also use this with normal database variables. In this case, replace "rec" with "@varname".

Examples:

#ADDKEY MyChar Name Zugg
#SHOW %db(@MyChar,Name)

displays: Zugg

This is the same as doing #SHOW @MyChar.Name

Add comment

Login or register to post comments