Re: Tables in CGI

2002-01-18 Thread Gerry Jones
On Thursday 17 January 2002 17:02, Roger C Haslock wrote: > Sorry. > That line should probably be > > foreach (0..$#columns) > > Odd message, though. > - Roger - > > - Original Message - > From: "Gerry Jones" <[EMAIL PROTECTED]> > T

Re: Tables in CGI

2002-01-17 Thread Gerry Jones
On Tuesday 15 January 2002 18:00, Roger C Haslock wrote: > I was watching this correspondance earlier, and wondering why you are not > using fetchrow_hashref. I now wonder why you get all the rows of data > bundled into a single array. Does your interface have now way of returning > data one row a

Re: Tables in CGI

2002-01-15 Thread Gerry Jones
Thanks for your suggestions. I went back and tried some of them with no luck I'm afraid. Here's my code as it is now: print table({-border=>'1', -align=>'CENTER', -valign=>'TOP'}, Tr({-align=>'CENTER', -valign=>'TOP'}, [ th(\@columns),

Re: Tables in CGI

2002-01-15 Thread Gerry Jones
I've deleted the snippet of code I had to display the table since it didn't work. I've tried other methods and they didn't work either. I've seen people using "map" too, but I don't know much about using it. What I meant by consistent was to use Stein's CGI.pm throughout my code. To recap: I

Tables in CGI

2002-01-14 Thread Gerry Jones
I've been tormented by a very small problem. I'm trying to display the results of a database query using CGI. What I've done is create subroutines to return the names of the table columns and another to return the data, both of which are stored in seperate arrays. So I have my data, but the tab

Re: Creating a CGI menu

2001-12-12 Thread Gerry Jones
Thanks for the tips guys. Francesco: where in the book did you find the code you adapted? I've got the book (I had a look before posting), but short of scanning every page, I couldn't find it. Brett: I now know next to nothing about SSI's, which is more than I knew before reading your post.

Re: Interesting Chop question.

2001-12-12 Thread Gerry Jones
On Wednesday 12 December 2001 16:22, Andre` Niel Cameron wrote: > Hi, > > I have a pain in the butt array that SOMETIMES has a CR at the end and > sometimes does not. Can anyone think of a way to test to see if the \n is > there and if it is then chop else no chop? Cause if I just use chop then

Creating a CGI menu

2001-12-12 Thread Gerry Jones
I want to create a menu/navigational section for a website I plan on building, and I would like to know if there are any easy-to-use modules I could use, or if there's another way. My website will have many levels and I don't fancy copying, pasting and tweaking the HTML to get the menu to look

Re: Using custom modules

2001-12-07 Thread Gerry Jones
On Friday 07 December 2001 12:49, fliptop wrote: > Gerry Jones wrote: > > I want to use a module I have created and stored in cgi-bin directory. It > > holds a few commonly used functions. I remember having done this before, > > but can't remember how I got it to work,

Using custom modules

2001-12-07 Thread Gerry Jones
I want to use a module I have created and stored in cgi-bin directory. It holds a few commonly used functions. I remember having done this before, but can't remember how I got it to work, and my error log says the module did not return a true value. Somebody please save me from wading through a

Re: CGI.pm popup_menu

2001-11-01 Thread Gerry Jones
On Thursday 01 November 2001 02:06, you wrote: > I am attempting to use the DEFAULT parameter within a popup_menu to set the > displayed value to what I want based on the passed parameters in the URL. > I am using Mozilla 0.9.4 on a Linux machine, and hope that isn't the reason > I'm not seing wha