Gossamer Forum
Home : Products : DBMan : Discussions :

Re: [Formant] Records without headers or footers

Quote Reply
Re: [Formant] Records without headers or footers In reply to
You can easily modify the .cfg file to only show one record at a time by changing:

$db_max_hits = 1;

which will show one record at a time.

You can remove the display of what is seen on the output display for sub html_record in your html.pl file by making the modifications to

sub html_view_success

but be sure to leave &html_print_headers; in tact.

Try commenting out the other portions you don't want to see, such as to view the next page. Or if you only want admin to view this then enclose those portions in:

|;
if ($per_admin) { print qq| The codes you want admin to see goes here |;
print qq|


For your links if you want these to link to a specific record then I would suggest using a Record ID as your key field and then you can directly access each record by including the ID number within the link. For example if you are calling up record number 1:

cgi-bin/dbman/db.cgi?db=default&uid=default&view_records=1&ID=1

You could also use a title field or any other reference that would be unique to a specific record. The page should load quicker using a relative url in your drop-down list.

Hope this helps

Unoffical DBMan FAQ

http://creativecomputingweb.com/dbman/index.shtml/
Subject Author Views Date
Thread Records without headers or footers Formant 3591 Sep 12, 2002, 4:31 AM
Thread Re: [Formant] Records without headers or footers
LoisC 3494 Sep 12, 2002, 10:51 AM
Post Re: [LoisC] Records without headers or footers
Formant 3480 Sep 13, 2002, 2:04 AM
Post Re: [Formant] Records without headers or footers
Watts 3498 Sep 12, 2002, 10:54 AM