Gossamer Forum
Home : Products : DBMan : Customization :

html.pl

Quote Reply
html.pl
I've set up the DBMan script on my site, customized it, and added a few records. Now the part that I need - how do I set up an HTML page that can call for the variables from the Database? For instance, let's say I want to call the record with ID #1 in an HTML template and want to insert the title, date, review, and other things within the HTML. Do I need to edit the html.pl file or how would I go about doing this?

Also, I want these pages to be viewable by all, without logging in. I don't know if DBMan can support this type of page generating using the variables, and if it can't, can you point me in the direction of something that could?

------------------
-Blake Kunisch
blake@outermost.net
http://www.outermost.net/
Quote Reply
Re: html.pl In reply to
Hi Blake,

You can't use DBMan inside of a regular html page like a template. You either have to customize html.pl to look like you want, or create html pages with static links into DBMan.

The searching is easy once you get comfortable with the syntax. To pull out record 1 without logging in, make a link like:

db.cgi?uid=default&view_records=1&ID=1&ww=1

The tags means:

uid=default : default user, don't have to log in.
view_records=1 : we are searching the database.
ID=1 : find records that match ID = 1
ww=1 : whole word matching, don't pull up results like ID=12.

Hope this helps,

Alex
Quote Reply
Re: html.pl In reply to
I've looked at the html.pl and am wondering where I would edit in the file to change the look if I go to:
http://www.outermost.net/dbman/db.cgi?uid=default&view_records=1&ID=1&ww=1
I have an understanding of HTML, but just need to know what to edit in html.pl and if I edit this, will it change the look of every page?

------------------
-Blake Kunisch
blake@outermost.net
http://www.outermost.net/
Quote Reply
Re: html.pl In reply to
Html.pl is the, Template file so to speak for DBMan. What ever you change in there will change the look and feel of your DBMan install. If you want to write a web page that will draw information for the data base you would do the call to the data base as;

Quote:
http://www.yoursite.com/dbman/cgi-bin/db.cgi?uid=default&view_records=1&ID=1&ww=1

The tags means:

uid=default : default user, don't have to log in.
view_records=1 : we are searching the database.
ID=1 : find records that match ID = 1
ww=1 : whole word matching, don't pull up results like ID=12.

To add data to the data base you would do a similiar call to the data base. All of the code can be found in the Html.pl file. If you need more just ask.

Does that make sense now?



------------------
Thanks in Advance

Daniel J.
www.blackrose.net
webmaster@blackrose.net


[This message has been edited by SirDaniel (edited January 15, 1999).]